Improved readability

Former-commit-id: 8cb71d9f3ba34be26a1133e2f4b118c86a8cc0ed
This commit is contained in:
Lynix 2013-01-24 00:13:24 +01:00
parent 07f8f5d029
commit 2cb1f121a5
2 changed files with 6 additions and 6 deletions

View File

@ -502,7 +502,7 @@ NzMatrix4<T>& NzMatrix4<T>::MakeLookAt(const NzVector3<T>& eye, const NzVector3<
template<typename T> template<typename T>
NzMatrix4<T>& NzMatrix4<T>::MakePerspective(T angle, T ratio, T zNear, T zFar) NzMatrix4<T>& NzMatrix4<T>::MakePerspective(T angle, T ratio, T zNear, T zFar)
{ {
// http://msdn.microsoft.com/en-us/library/windows/desktop/bb204944(v=vs.85).aspx // http://msdn.microsoft.com/en-us/library/windows/desktop/bb204945(v=vs.85).aspx
#if NAZARA_MATH_ANGLE_RADIAN #if NAZARA_MATH_ANGLE_RADIAN
angle /= F(2.0); angle /= F(2.0);
#else #else

View File

@ -181,7 +181,7 @@ NzVector3<T>& NzVector3<T>::Minimize(const NzVector3& vec)
template<typename T> template<typename T>
NzVector3<T>& NzVector3<T>::Normalize(T* length) NzVector3<T>& NzVector3<T>::Normalize(T* length)
{ {
T norm = std::sqrt(SquaredLength()); T norm = Length();
T invNorm = F(1.0) / norm; T invNorm = F(1.0) / norm;
x *= invNorm; x *= invNorm;