From 9c21eb79493ec255f6daf565bb845c7bbdfcd1aa Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Sun, 9 Feb 2014 02:56:26 -0800 Subject: [PATCH] removed comments --- libraries/script-engine/src/EventTypes.cpp | 30 ---------------------- 1 file changed, 30 deletions(-) diff --git a/libraries/script-engine/src/EventTypes.cpp b/libraries/script-engine/src/EventTypes.cpp index 76c0a7fdc5..8f0d4192f5 100644 --- a/libraries/script-engine/src/EventTypes.cpp +++ b/libraries/script-engine/src/EventTypes.cpp @@ -343,36 +343,6 @@ TouchEvent::TouchEvent(const QTouchEvent& event, const TouchEvent& other) { calculateMetaAttributes(other); } -#if 0 //////////////////////////////////////////////////////////////////////// - --- returns the smallest angle between the two angles --- ie: the difference between the two angles via the shortest distance -function smallestAngleDiff( target, source ) - local a = target - source - - if (a > 180) then - a = a - 360 - elseif (a < -180) then - a = a + 360 - end - - return a -end - --- calculates rotation amount based on the average change in tracking point rotation -local function calcAverageRotation( points ) - - local total = 0 - for i=1, #points do - local point = points[i] - total = total + smallestAngleDiff( point.angle, point.prevAngle ) - end - - return total / #points -end - -#endif //////////////////////////////////////////////////////////////////////// - // returns the degrees between two points (note: 0 degrees is 'east') float angleBetweenPoints(const glm::vec2& a, const glm::vec2& b ) { glm::vec2 length = b - a;