Browse Source

Fixes warning in Vector2::rotate() about double.

Darryl Gough 14 years ago
parent
commit
659a421965
1 changed files with 2 additions and 2 deletions
  1. 2 2
      gameplay-encoder/src/Vector2.cpp

+ 2 - 2
gameplay-encoder/src/Vector2.cpp

@@ -209,8 +209,8 @@ void Vector2::scale(const Vector2& scale)
 
 void Vector2::rotate(const Vector2& point, float angle)
 {
-    double sinAngle = sin(angle);
-    double cosAngle = cos(angle);
+    float sinAngle = sin(angle);
+    float cosAngle = cos(angle);
 
     if (point.isZero())
     {