Filled in implementation of Vector2::angle().
authorStephen Whitmore <stephen.whitmore@gmail.com>
Wed, 17 Jun 2009 01:55:05 +0000 (21:55 -0400)
committerStephen Whitmore <stephen.whitmore@gmail.com>
Wed, 17 Jun 2009 01:55:05 +0000 (21:55 -0400)
lib/src/Vector2.cpp

index 7c8e743..5166743 100644 (file)
@@ -55,10 +55,7 @@ void Vector2::unit()
 
 float Vector2::angle() const
 {
-    //TODO
-    DASSERT(false);
-    //return atan2A(m_fY,m_fX);
-    return 0;
+    return atan2(m_fY,m_fX);
 }
 float Vector2::length() const
 {