diff options
author | aap <aap@papnet.eu> | 2019-06-01 01:58:19 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-06-01 01:58:19 +0200 |
commit | 0476a41883ed1ec1db0e9d34ac9d4a1d4420f4d4 (patch) | |
tree | cff2857719651063516878e83a9a472b7f900fed /src/math/Vector.h | |
parent | Merge pull request #4 from Fire-Head/master (diff) | |
download | re3-0476a41883ed1ec1db0e9d34ac9d4a1d4420f4d4.tar re3-0476a41883ed1ec1db0e9d34ac9d4a1d4420f4d4.tar.gz re3-0476a41883ed1ec1db0e9d34ac9d4a1d4420f4d4.tar.bz2 re3-0476a41883ed1ec1db0e9d34ac9d4a1d4420f4d4.tar.lz re3-0476a41883ed1ec1db0e9d34ac9d4a1d4420f4d4.tar.xz re3-0476a41883ed1ec1db0e9d34ac9d4a1d4420f4d4.tar.zst re3-0476a41883ed1ec1db0e9d34ac9d4a1d4420f4d4.zip |
Diffstat (limited to 'src/math/Vector.h')
-rw-r--r-- | src/math/Vector.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/math/Vector.h b/src/math/Vector.h index d89ca375..60fcdee5 100644 --- a/src/math/Vector.h +++ b/src/math/Vector.h @@ -25,6 +25,7 @@ public: float Magnitude(void) const { return sqrt(x*x + y*y + z*z); } float MagnitudeSqr(void) const { return x*x + y*y + z*z; } float Magnitude2D(void) const { return sqrt(x*x + y*y); } + float MagnitudeSqr2D(void) const { return x*x + y*y; } void Normalise(void) { float sq = MagnitudeSqr(); if(sq > 0.0f){ |