| 0.9.8

- Main Page
- Modules
- Files

- File List

matrix_interpolation.hpp
Go to the documentation of this file.
1
14 #pragma once
15
16 // Dependency:
17 #include "../glm.hpp"
18
19 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
20 # pragma message("GLM: GLM_GTX_matrix_interpolation extension included")
21 #endif
22
23 namespace glm
24 {
27
30 template <typename T, precision P>
31 GLM_FUNC_DECL void axisAngle(
32 tmat4x4<T, P> const & mat,
33 tvec3<T, P> & axis,
34 T & angle);
35
38 template <typename T, precision P>
39 GLM_FUNC_DECL tmat4x4<T, P> axisAngleMatrix(
40 tvec3<T, P> const & axis,
41 T const angle);
42
45 template <typename T, precision P>
46 GLM_FUNC_DECL tmat4x4<T, P> extractMatrixRotation(
47 tmat4x4<T, P> const & mat);
48
52 template <typename T, precision P>
53 GLM_FUNC_DECL tmat4x4<T, P> interpolate(
54 tmat4x4<T, P> const & m1,
55 tmat4x4<T, P> const & m2,
56 T const delta);
57
59 }//namespace glm
60
61 #include "matrix_interpolation.inl"
glm
Definition: _noise.hpp:11
glm::axis
GLM_FUNC_DECL tvec3< T, P > axis(tquat< T, P > const &x)
Returns the q rotation axis.
glm::axisAngleMatrix
GLM_FUNC_DECL tmat4x4< T, P > axisAngleMatrix(tvec3< T, P > const &axis, T const angle)
Build a matrix from axis and angle.
glm::axisAngle
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.
glm::angle
GLM_FUNC_DECL T angle(tquat< T, P > const &x)
Returns the quaternion rotation angle.
glm::extractMatrixRotation
GLM_FUNC_DECL tmat4x4< T, P > extractMatrixRotation(tmat4x4< T, P > const &mat)
Extracts the rotation part of a matrix.
glm::interpolate
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.