From 6ff921c160e802c12ad40b06f17a93f72eea6bdf Mon Sep 17 00:00:00 2001 From: aap Date: Sun, 28 Jul 2019 13:14:08 +0200 Subject: CAutomobile::PreRender; whole class finished --- src/math/Vector2D.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/math/Vector2D.h') diff --git a/src/math/Vector2D.h b/src/math/Vector2D.h index caba9146..c8835ec0 100644 --- a/src/math/Vector2D.h +++ b/src/math/Vector2D.h @@ -14,7 +14,7 @@ public: void Normalise(void){ float sq = MagnitudeSqr(); if(sq > 0.0f){ - float invsqrt = 1.0f/Sqrt(sq); + float invsqrt = RecipSqrt(sq); x *= invsqrt; y *= invsqrt; }else -- cgit v1.2.3