From 0476a41883ed1ec1db0e9d34ac9d4a1d4420f4d4 Mon Sep 17 00:00:00 2001 From: aap Date: Sat, 1 Jun 2019 01:58:19 +0200 Subject: added CCoronas --- src/math/Vector.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/math/Vector.h') 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){ -- cgit v1.2.3