2
0
Эх сурвалжийг харах

Fixed spacing and optimized

Fixed tab vs 3 spaces and optimized the code a bit.
Nathan Bowhay 10 жил өмнө
parent
commit
57bad98569

+ 2 - 2
Engine/source/math/mPoint3.h

@@ -859,8 +859,8 @@ inline F64 Point3D::lenSquared() const
 
 inline F64 Point3D::len() const
 {
-	F64 temp = x*x + y*y + z*z;
-	return (temp > 0.0) ? mSqrtD(x*x + y*y + z*z) : 0.0;
+   F64 temp = x*x + y*y + z*z;
+   return (temp > 0.0) ? mSqrtD(temp) : 0.0;
 }
 
 inline void Point3D::normalize()