diff options
Diffstat (limited to 'tests/sketch/src/com/android/gesture/GestureStroke.java')
-rw-r--r-- | tests/sketch/src/com/android/gesture/GestureStroke.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/sketch/src/com/android/gesture/GestureStroke.java b/tests/sketch/src/com/android/gesture/GestureStroke.java index 3555010..c2ebc17 100644 --- a/tests/sketch/src/com/android/gesture/GestureStroke.java +++ b/tests/sketch/src/com/android/gesture/GestureStroke.java @@ -244,4 +244,12 @@ public class GestureStroke { public void invalidate() { mCachedPath = null; } + + /** + * Compute an oriented bounding box of the stroke + * @return OrientedBoundingBox + */ + public OrientedBoundingBox computeOrientedBoundingBox() { + return GestureUtilities.computeOrientedBoundingBox(points); + } } |