GLM  0.9.5
matrix_interpolation.hpp
Go to the documentation of this file.
1 
38 #ifndef GLM_GTX_matrix_interpolation
39 #define GLM_GTX_matrix_interpolation
40 
41 // Dependency:
42 #include "../glm.hpp"
43 
44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTX_matrix_interpolation extension included")
46 #endif
47 
48 namespace glm
49 {
52 
55  template <typename T, precision P>
56  void axisAngle(
57  detail::tmat4x4<T, P> const & mat,
58  detail::tvec3<T, P> & axis,
59  T & angle);
60 
63  template <typename T, precision P>
64  detail::tmat4x4<T, P> axisAngleMatrix(
65  detail::tvec3<T, P> const & axis,
66  T const angle);
67 
70  template <typename T, precision P>
71  detail::tmat4x4<T, P> extractMatrixRotation(
72  detail::tmat4x4<T, P> const & mat);
73 
77  template <typename T, precision P>
78  detail::tmat4x4<T, P> interpolate(
79  detail::tmat4x4<T, P> const & m1,
80  detail::tmat4x4<T, P> const & m2,
81  T const delta);
82 
84 }//namespace glm
85 
86 #include "matrix_interpolation.inl"
87 
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.