diff options
| author | 2009-05-28 18:00:50 -0700 | |
|---|---|---|
| committer | 2009-05-28 18:00:50 -0700 | |
| commit | f3ede869b8abef8d85e204bc259ee0cf8dc8d2ae (patch) | |
| tree | aea249fffeb18c9583854c86a66b6f65bdaf02cb | |
| parent | b0ded43d3844d9d97c5d554e8ca4ec3ee2c7bbe1 (diff) | |
Converted the angle of OrientedBoundingBox to degrees
| -rwxr-xr-x | core/java/android/gesture/GestureUtilities.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/gesture/GestureUtilities.java b/core/java/android/gesture/GestureUtilities.java index 3e8a3c836712..40d70295fc9b 100755 --- a/core/java/android/gesture/GestureUtilities.java +++ b/core/java/android/gesture/GestureUtilities.java @@ -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) { |