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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user