Change rotation values from degrees to radians

This commit is contained in:
Pavel fljot 2012-07-11 13:34:50 +03:00
parent 7be7c8c40a
commit 850ed9849f
2 changed files with 0 additions and 3 deletions
src/org/gestouch/gestures

View file

@ -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;

View file

@ -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);
}