38 #ifndef GLM_GTX_matrix_interpolation
39 #define GLM_GTX_matrix_interpolation
44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTX_matrix_interpolation extension included")
55 template <
typename T, precision P>
57 detail::tmat4x4<T, P>
const & mat,
58 detail::tvec3<T, P> &
axis,
63 template <
typename T, precision P>
65 detail::tvec3<T, P>
const &
axis,
70 template <
typename T, precision P>
72 detail::tmat4x4<T, P>
const & mat);
77 template <
typename T, precision P>
79 detail::tmat4x4<T, P>
const & m1,
80 detail::tmat4x4<T, P>
const & m2,
86 #include "matrix_interpolation.inl"
88 #endif//GLM_GTX_matrix_interpolation
GLM_FUNC_DECL T angle(detail::tquat< T, P > const &x)
Returns the quaternion rotation angle.
detail::tmat4x4< T, P > extractMatrixRotation(detail::tmat4x4< T, P > const &mat)
Extracts the rotation part of a matrix.
void axisAngle(detail::tmat4x4< T, P > const &mat, detail::tvec3< T, P > &axis, T &angle)
Get the axis and angle of the rotation from a matrix.
detail::tmat4x4< T, P > interpolate(detail::tmat4x4< T, P > const &m1, detail::tmat4x4< T, P > const &m2, T const delta)
Build a interpolation of 4 * 4 matrixes.
detail::tmat4x4< T, P > axisAngleMatrix(detail::tvec3< T, P > const &axis, T const angle)
Build a matrix from axis and angle.
GLM_FUNC_DECL detail::tvec3< T, P > axis(detail::tquat< T, P > const &x)
Returns the q rotation axis.