aboutsummaryrefslogtreecommitdiff
path: root/src/PhysicsMath.h
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-21 17:57:16 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-21 17:57:16 +0700
commit8b0a4225dae689b56ab7ad93b05c8258e7abccb4 (patch)
tree4065f9b7ea9669b46f5bb69c7b5242dfecb2d341 /src/PhysicsMath.h
parentfb2f16557d34d3b2b4ad44687a55a830878e6aba (diff)
downloadblackshades-8b0a4225dae689b56ab7ad93b05c8258e7abccb4.tar.gz
Improve C++17 compatibility
Diffstat (limited to 'src/PhysicsMath.h')
-rw-r--r--src/PhysicsMath.h6
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);
}