| 0.9.9 API documenation

- 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 #ifndef GLM_ENABLE_EXPERIMENTAL
20 # error "GLM: GLM_GTX_matrix_interpolation is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
21 #endif
22
23 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
24 # pragma message("GLM: GLM_GTX_matrix_interpolation extension included")
25 #endif
26
27 namespace glm
28 {
31
34 template<typename T, qualifier Q>
35 GLM_FUNC_DECL void axisAngle(
36 mat<4, 4, T, Q> const& mat,
37 vec<3, T, Q> & axis,
38 T & angle);
39
42 template<typename T, qualifier Q>
43 GLM_FUNC_DECL mat<4, 4, T, Q> axisAngleMatrix(
44 vec<3, T, Q> const& axis,
45 T const angle);
46
49 template<typename T, qualifier Q>
50 GLM_FUNC_DECL mat<4, 4, T, Q> extractMatrixRotation(
51 mat<4, 4, T, Q> const& mat);
52
56 template<typename T, qualifier Q>
57 GLM_FUNC_DECL mat<4, 4, T, Q> interpolate(
58 mat<4, 4, T, Q> const& m1,
59 mat<4, 4, T, Q> const& m2,
60 T const delta);
61
63 }//namespace glm
64
65 #include "matrix_interpolation.inl"
glm::axisAngle
GLM_FUNC_DECL void axisAngle(mat< 4, 4, T, Q > const &mat, vec< 3, T, Q > &axis, T &angle)
Get the axis and angle of the rotation from a matrix.
glm::interpolate
GLM_FUNC_DECL mat< 4, 4, T, Q > interpolate(mat< 4, 4, T, Q > const &m1, mat< 4, 4, T, Q > const &m2, T const delta)
Build a interpolation of 4 * 4 matrixes.
glm
Definition: common.hpp:20
glm::axis
GLM_FUNC_DECL vec< 3, T, Q > axis(tquat< T, Q > const &x)
Returns the q rotation axis.
glm::angle
GLM_FUNC_DECL T angle(tquat< T, Q > const &x)
Returns the quaternion rotation angle.
glm::extractMatrixRotation
GLM_FUNC_DECL mat< 4, 4, T, Q > extractMatrixRotation(mat< 4, 4, T, Q > const &mat)
Extracts the rotation part of a matrix.
glm::axisAngleMatrix
GLM_FUNC_DECL mat< 4, 4, T, Q > axisAngleMatrix(vec< 3, T, Q > const &axis, T const angle)
Build a matrix from axis and angle.