diff options
Diffstat (limited to 'src/PhysicsMath.h')
-rw-r--r-- | src/PhysicsMath.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PhysicsMath.h b/src/PhysicsMath.h index c975941..99ef76f 100644 --- a/src/PhysicsMath.h +++ b/src/PhysicsMath.h @@ -162,7 +162,7 @@ inline float Vector::Magnitude(void) { - return (float) fast_sqrt(x*x + y*y + z*z); + return (float) sqrt(x*x + y*y + z*z); } @@ -172,7 +172,7 @@ inline void Vector::Normalize(void) { - float m = (float) fast_sqrt(x*x + y*y + z*z); + float m = (float) sqrt(x*x + y*y + z*z); if(m <= tol) m = 1; @@ -998,7 +998,7 @@ inline float Quaternion::Magnitude(void) { - return (float) fast_sqrt(n*n + v.x*v.x + v.y*v.y + v.z*v.z); + return (float) sqrt(n*n + v.x*v.x + v.y*v.y + v.z*v.z); } |