Lines Matching defs:array
30 * Gets a float array of the 2D coordinates representing a rectangles
32 * The order of the corners in the float array is:
39 * @return the float array of corners (8 floats)
67 * Takes an array of 2D coordinates representing corners and returns the
70 * @param array array of 2D coordinates
73 public static RectF trapToRect(float[] array) {
76 for (int i = 1; i < array.length; i += 2) {
77 float x = array[i - 1];
78 float y = array[i];
89 * If edge point [x, y] in array [x0, y0, x1, y1, ...] is outside of the
93 * @param array an array of points to clamp to the rectangle, gets set to
96 public static void getEdgePoints(RectF imageBound, float[] array) {
97 if (array.length < 2)
99 for (int x = 0; x < array.length; x += 2) {
100 array[x] = GeometryMathUtils.clamp(array[x], imageBound.left, imageBound.right);
101 array[x + 1] = GeometryMathUtils.clamp(array[x + 1], imageBound.top, imageBound.bottom);