From 57bad98569492a642eebd76a79b8709f3a586a2c Mon Sep 17 00:00:00 2001 From: Nathan Bowhay Date: Thu, 12 Feb 2015 08:31:54 -0800 Subject: [PATCH] Fixed spacing and optimized Fixed tab vs 3 spaces and optimized the code a bit. --- Engine/source/math/mPoint3.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Engine/source/math/mPoint3.h b/Engine/source/math/mPoint3.h index 8ba244767..12af91c4b 100644 --- a/Engine/source/math/mPoint3.h +++ b/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()