diff --git a/glm/gtc/quaternion.inl b/glm/gtc/quaternion.inl index 70587b86..18cf0ac0 100644 --- a/glm/gtc/quaternion.inl +++ b/glm/gtc/quaternion.inl @@ -172,6 +172,16 @@ namespace detail { *this = quat_cast(m); } + + GLM_FUNC_DECL explicit operator tmat3() + { + return mat3_cast(*this); + } + + GLM_FUNC_DECL explicit operator tmat4() + { + return mat4_cast(*this); + } template GLM_FUNC_QUALIFIER tquat conjugate(tquat const & q)