From: Stephen Whitmore Date: Wed, 17 Jun 2009 01:55:05 +0000 (-0400) Subject: Filled in implementation of Vector2::angle(). X-Git-Tag: libbear-premerge~54 X-Git-Url: http://gitweb.pgornicz.com/?a=commitdiff_plain;h=30690a59c88f9696b14aa889620c10d7b14bf6cd;p=libbear.git Filled in implementation of Vector2::angle(). --- 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 {