Browse Source

Update quaternion.inl

plasmacel 11 years ago
parent
commit
4581d25ec9
1 changed files with 10 additions and 0 deletions
  1. 10 0
      glm/gtc/quaternion.inl

+ 10 - 0
glm/gtc/quaternion.inl

@@ -172,6 +172,16 @@ namespace detail
 	{
 	{
 		*this = quat_cast(m);
 		*this = quat_cast(m);
 	}
 	}
+	
+	GLM_FUNC_DECL explicit operator tmat3<T, P>()
+	{
+		return mat3_cast(*this);
+	}
+	
+	GLM_FUNC_DECL explicit operator tmat4<T, P>()
+	{
+		return mat4_cast(*this);
+	}
 
 
 	template <typename T, precision P>
 	template <typename T, precision P>
 	GLM_FUNC_QUALIFIER tquat<T, P> conjugate(tquat<T, P> const & q)
 	GLM_FUNC_QUALIFIER tquat<T, P> conjugate(tquat<T, P> const & q)