summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/util/MotionEventHelper.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d/util/MotionEventHelper.java')
-rw-r--r--src/com/android/gallery3d/util/MotionEventHelper.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/util/MotionEventHelper.java b/src/com/android/gallery3d/util/MotionEventHelper.java
index 715f7fa69..dc01cd98c 100644
--- a/src/com/android/gallery3d/util/MotionEventHelper.java
+++ b/src/com/android/gallery3d/util/MotionEventHelper.java
@@ -17,7 +17,6 @@ package com.android.gallery3d.util;
import android.annotation.TargetApi;
import android.graphics.Matrix;
-import android.util.FloatMath;
import android.view.MotionEvent;
import android.view.MotionEvent.PointerCoords;
@@ -104,8 +103,8 @@ public final class MotionEventHelper {
// angle from vertical. Coordinate system: down is increasing Y, right is
// increasing X.
float[] v = new float[2];
- v[0] = FloatMath.sin(angleRadians);
- v[1] = -FloatMath.cos(angleRadians);
+ v[0] = (float) Math.sin(angleRadians);
+ v[1] = (float) -Math.cos(angleRadians);
m.mapVectors(v);
// Derive the transformed vector's clockwise angle from vertical.