(int[] arr)
| 193 | } |
| 194 | |
| 195 | static float[] itof(int[] arr) { |
| 196 | if (arr==null) |
| 197 | return null; |
| 198 | int n = arr.length; |
| 199 | float[] temp = new float[n]; |
| 200 | for (int i=0; i<n; i++) |
| 201 | temp[i] = arr[i]; |
| 202 | return temp; |
| 203 | } |
| 204 | |
| 205 | /** Creates a one-element array with a coordinate; if 'imp' is non-null |
| 206 | * converts from a screen coordinate to an image (offscreen) coordinate. |