diff options
Diffstat (limited to 'src/math')
-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){ |