Searched refs:centroid (Results 1 - 1 of 1) sorted by relevance

/frameworks/base/core/java/android/gesture/
H A DGestureUtils.java325 * Calculates the centroid of a set of points.
328 * @return the centroid
499 private static OrientedBoundingBox computeOrientedBoundingBox(float[] points, float[] centroid) { argument
500 translate(points, -centroid[0], -centroid[1]);
534 return new OrientedBoundingBox((float) (angle * 180 / Math.PI), centroid[0], centroid[1], maxx - minx, maxy - miny);

Completed in 54 milliseconds