made CTransform::rotate a const transform func only

This commit is contained in:
Jack Andersen 2016-03-10 14:22:22 -10:00
parent b721e09ef5
commit 8154c82d78
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public:
return *this; return *this;
} }
inline void rotate(const CVector3f& euler) { *this = *this * CMatrix3f(CQuaternion(euler)); } inline zeus::CVector3f rotate(const CVector3f& vec) const { return *this * vec; }
static inline CTransform RotateX(float theta) static inline CTransform RotateX(float theta)
{ {