diff --git a/src/org/gestouch/gestures/RotateGesture.as b/src/org/gestouch/gestures/RotateGesture.as index 89afa95..4fd1791 100644 --- a/src/org/gestouch/gestures/RotateGesture.as +++ b/src/org/gestouch/gestures/RotateGesture.as @@ -102,8 +102,6 @@ package org.gestouch.gestures rotation = rotation > 0 ? rotation - _thresholdAngle : rotation + _thresholdAngle; } - // TODO: switch to radians everywhere - rotation *= GestureUtils.RADIANS_TO_DEGREES; _transformVector.x = currTransformVector.x; _transformVector.y = currTransformVector.y; diff --git a/src/org/gestouch/gestures/TransformGesture.as b/src/org/gestouch/gestures/TransformGesture.as index 4fe1aba..b596623 100644 --- a/src/org/gestouch/gestures/TransformGesture.as +++ b/src/org/gestouch/gestures/TransformGesture.as @@ -128,7 +128,6 @@ package org.gestouch.gestures if (_touch2) { rotation = Math.atan2(currTransformVector.y, currTransformVector.x) - Math.atan2(_transformVector.y, _transformVector.x); - rotation *= GestureUtils.RADIANS_TO_DEGREES; scale = currTransformVector.length / _transformVector.length; _transformVector = _touch2.location.subtract(_touch1.location); }