Merge change 2678 into donut

* changes:
  Converted the angle of OrientedBoundingBox to degrees
This commit is contained in:
Android (Google) Code Review
2009-05-28 21:13:26 -07:00

View File

@@ -413,7 +413,7 @@ final class GestureUtilities {
}
}
return new OrientedBoundingBox(angle, centroid[0], centroid[1], maxx - minx, maxy - miny);
return new OrientedBoundingBox((float) (angle * 180 / Math.PI), centroid[0], centroid[1], maxx - minx, maxy - miny);
}
private static double[] computeOrientation(double[][] covarianceMatrix) {