From 4581d25ec9218aa56a31a43f459337dea824681d Mon Sep 17 00:00:00 2001 From: plasmacel Date: Mon, 24 Nov 2014 01:16:07 +0100 Subject: [PATCH] Update quaternion.inl --- glm/gtc/quaternion.inl | 10 ++++++++++ 1 file changed, 10 insertions(+) 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)