0.9.6
matrix_interpolation.hpp
Go to the documentation of this file.
1 
42 #pragma once
43 
44 // Dependency:
45 #include "../glm.hpp"
46 
47 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
48 # pragma message("GLM: GLM_GTX_matrix_interpolation extension included")
49 #endif
50 
51 namespace glm
52 {
55 
58  template <typename T, precision P>
59  GLM_FUNC_DECL void axisAngle(
60  tmat4x4<T, P> const & mat,
61  tvec3<T, P> & axis,
62  T & angle);
63 
66  template <typename T, precision P>
67  GLM_FUNC_DECL tmat4x4<T, P> axisAngleMatrix(
68  tvec3<T, P> const & axis,
69  T const angle);
70 
73  template <typename T, precision P>
74  GLM_FUNC_DECL tmat4x4<T, P> extractMatrixRotation(
75  tmat4x4<T, P> const & mat);
76 
80  template <typename T, precision P>
81  GLM_FUNC_DECL tmat4x4<T, P> interpolate(
82  tmat4x4<T, P> const & m1,
83  tmat4x4<T, P> const & m2,
84  T const delta);
85 
87 }//namespace glm
88 
89 #include "matrix_interpolation.inl"
GLM_FUNC_DECL tvec3< T, P > axis(tquat< T, P > const &x)
Returns the q rotation axis.
GLM_FUNC_DECL T angle(tquat< T, P > const &x)
Returns the quaternion rotation angle.
GLM_FUNC_DECL tmat4x4< T, P > axisAngleMatrix(tvec3< T, P > const &axis, T const angle)
Build a matrix from axis and angle.
GLM_FUNC_DECL void axisAngle(tmat4x4< T, P > const &mat, tvec3< T, P > &axis, T &angle)
Get the axis and angle of the rotation from a matrix.
Definition: _noise.hpp:39
GLM_FUNC_DECL tmat4x4< T, P > extractMatrixRotation(tmat4x4< T, P > const &mat)
Extracts the rotation part of a matrix.
GLM_FUNC_DECL tmat4x4< T, P > interpolate(tmat4x4< T, P > const &m1, tmat4x4< T, P > const &m2, T const delta)
Build a interpolation of 4 * 4 matrixes.