Explorar o código

Fixed spacing and optimized

Fixed tab vs 3 spaces and optimized the code a bit.
Nathan Bowhay %!s(int64=10) %!d(string=hai) anos
pai
achega
57bad98569
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Engine/source/math/mPoint3.h

+ 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()