Reverted Don's changed of sqrtf to sqrt. Don't understand why the change was

required, suggest a problem elsewhere which should be fixed, *not* by modification
of Vec2.
This commit is contained in:
Robert Osfield
2003-03-13 14:29:16 +00:00
parent 661c8dd006
commit 2915550887

View File

@@ -136,7 +136,7 @@ class Vec2
/// Length of the vector = sqrt( vec . vec )
inline float length() const
{
return sqrt( _v[0]*_v[0] + _v[1]*_v[1] );
return sqrtf( _v[0]*_v[0] + _v[1]*_v[1] );
}
/// Length squared of the vector = vec . vec