diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-06-21 17:57:16 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-06-21 17:57:16 +0700 |
| commit | 8b0a4225dae689b56ab7ad93b05c8258e7abccb4 (patch) | |
| tree | 4065f9b7ea9669b46f5bb69c7b5242dfecb2d341 /src/PhysicsMath.h | |
| parent | fb2f16557d34d3b2b4ad44687a55a830878e6aba (diff) | |
| download | blackshades-8b0a4225dae689b56ab7ad93b05c8258e7abccb4.tar.gz | |
Improve C++17 compatibility
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); } |
