diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-05-28 21:13:26 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-05-28 21:13:26 -0700 |
commit | 607384d45fae5c9c2b21c96e4278665c8d7d3006 (patch) | |
tree | bb1c5fbd6f25f9a43262e099b197c1ac18c1dee6 /core | |
parent | f40f074c43fcef627131d4b631251192761b4daa (diff) | |
parent | f3ede869b8abef8d85e204bc259ee0cf8dc8d2ae (diff) | |
download | frameworks_base-607384d45fae5c9c2b21c96e4278665c8d7d3006.zip frameworks_base-607384d45fae5c9c2b21c96e4278665c8d7d3006.tar.gz frameworks_base-607384d45fae5c9c2b21c96e4278665c8d7d3006.tar.bz2 |
Merge change 2678 into donut
* changes:
Converted the angle of OrientedBoundingBox to degrees
Diffstat (limited to 'core')
-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 3e8a3c8..40d7029 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) { |