Minor performance improvement

This commit is contained in:
Jack Andersen 2018-01-06 19:18:57 -10:00
parent c466fd21d1
commit f82efe0583
1 changed files with 3 additions and 3 deletions

View File

@ -214,17 +214,17 @@ public:
inline CVector3f upVector() const
{
return { basis.m[2][0], basis.m[2][1], basis.m[2][2] };
return basis.vec[2];
}
inline CVector3f frontVector() const
{
return { basis.m[1][0], basis.m[1][1], basis.m[1][2] };
return basis.vec[1];
}
inline CVector3f rightVector() const
{
return { basis.m[0][0], basis.m[0][1], basis.m[0][2] };
return basis.vec[0];
}
inline void orthonormalize()