diff options
author | aap <aap@papnet.eu> | 2019-07-10 17:34:11 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-07-10 17:34:11 +0200 |
commit | 90e093cd47fb2af10617b1d404fc65ca813782ec (patch) | |
tree | f77fde407d8458529f688d3cb14c2ff003573fb0 /src/math/Vector.h | |
parent | added wrappers around math functions (diff) | |
download | re3-90e093cd47fb2af10617b1d404fc65ca813782ec.tar re3-90e093cd47fb2af10617b1d404fc65ca813782ec.tar.gz re3-90e093cd47fb2af10617b1d404fc65ca813782ec.tar.bz2 re3-90e093cd47fb2af10617b1d404fc65ca813782ec.tar.lz re3-90e093cd47fb2af10617b1d404fc65ca813782ec.tar.xz re3-90e093cd47fb2af10617b1d404fc65ca813782ec.tar.zst re3-90e093cd47fb2af10617b1d404fc65ca813782ec.zip |
Diffstat (limited to 'src/math/Vector.h')
-rw-r--r-- | src/math/Vector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/Vector.h b/src/math/Vector.h index 9a1dde7a..de8092eb 100644 --- a/src/math/Vector.h +++ b/src/math/Vector.h @@ -30,7 +30,7 @@ public: void Normalise(void) { float sq = MagnitudeSqr(); if(sq > 0.0f){ - float invsqrt = 1.0f/sqrt(sq); // CMaths::RecipSqrt + float invsqrt = 1.0f/Sqrt(sq); // CMaths::RecipSqrt x *= invsqrt; y *= invsqrt; z *= invsqrt; |