Add the ability to convert a SIMD quat to a standard mat4.

master
Dave Reid ago%!(EXTRA string=12 years)
parent 942bf08fe3
commit d07496460a
  1. 5
      glm/gtx/simd_quat.hpp
  2. 8
      glm/gtx/simd_quat.inl

@ -189,6 +189,11 @@ namespace detail
detail::fmat4x4SIMD mat4SIMD_cast(
detail::fquatSIMD const & q);
//! Converts a simdQuat to a standard mat4.
//! (From GLM_GTX_simd_quat extension)
mat4 mat4_cast(
detail::fquatSIMD const & q);
/// Returns the length of the quaternion.
///

@ -365,6 +365,14 @@ GLM_FUNC_QUALIFIER detail::fmat4x4SIMD mat4SIMD_cast
return result;
}
GLM_FUNC_QUALIFIER mat4 mat4_cast
(
detail::fquatSIMD const & q
)
{
return mat4_cast(mat4SIMD_cast(q));
}
GLM_FUNC_QUALIFIER float length

Loading…
Cancel
Save