Update quaternion.inl

This commit is contained in:
plasmacel 2014-11-24 01:16:07 +01:00
parent 3b3dcd7d03
commit 4581d25ec9

View File

@ -173,6 +173,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)
{ {