GLM: rotate_normalized_axis.hpp Source File

GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

- File List

rotate_normalized_axis.hpp
Go to the documentation of this file.
1
40 #ifndef GLM_GTX_rotate_normalized_axis
41 #define GLM_GTX_rotate_normalized_axis
42
43 // Dependency:
44 #include "../glm.hpp"
45 #include "../gtc/epsilon.hpp"
46 #include "../gtc/quaternion.hpp"
47
48 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
49 # pragma message("GLM: GLM_GTX_rotate_normalized_axis extension included")
50 #endif
51
52 namespace glm
53 {
56
68 template <typename T, precision P>
69 detail::tmat4x4<T, P> rotateNormalizedAxis(
70 detail::tmat4x4<T, P> const & m,
71 T const & angle,
72 detail::tvec3<T, P> const & axis);
73
81 template <typename T, precision P>
82 detail::tquat<T, P> rotateNormalizedAxis(
83 detail::tquat<T, P> const & q,
84 T const & angle,
85 detail::tvec3<T, P> const & axis);
86
88 }//namespace glm
89
90 #include "rotate_normalized_axis.inl"
91
92 #endif//GLM_GTX_rotate_normalized_axis
glm::angle
GLM_FUNC_DECL T angle(detail::tquat< T, P > const &x)
Returns the quaternion rotation angle.
glm::rotateNormalizedAxis
detail::tmat4x4< T, P > rotateNormalizedAxis(detail::tmat4x4< T, P > const &m, T const &angle, detail::tvec3< T, P > const &axis)
Builds a rotation 4 * 4 matrix created from a normalized axis and an angle.
glm::axis
GLM_FUNC_DECL detail::tvec3< T, P > axis(detail::tquat< T, P > const &x)
Returns the q rotation axis.