From 30690a59c88f9696b14aa889620c10d7b14bf6cd Mon Sep 17 00:00:00 2001 From: Stephen Whitmore Date: Tue, 16 Jun 2009 21:55:05 -0400 Subject: [PATCH] Filled in implementation of Vector2::angle(). --- lib/src/Vector2.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/src/Vector2.cpp b/lib/src/Vector2.cpp index 7c8e743..5166743 100644 --- a/lib/src/Vector2.cpp +++ b/lib/src/Vector2.cpp @@ -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 { -- 2.10.2