From f82efe058341810dec71954bf11eb21222059403 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sat, 6 Jan 2018 19:18:57 -1000 Subject: [PATCH] Minor performance improvement --- include/zeus/CTransform.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/zeus/CTransform.hpp b/include/zeus/CTransform.hpp index d28b46e..9f89bbb 100644 --- a/include/zeus/CTransform.hpp +++ b/include/zeus/CTransform.hpp @@ -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()