| 0.9.7

- Main Page
- Modules
- Files

- File List

rotate_normalized_axis.hpp
Go to the documentation of this file.
1
44 #pragma once
45
46 // Dependency:
47 #include "../glm.hpp"
48 #include "../gtc/epsilon.hpp"
49 #include "../gtc/quaternion.hpp"
50
51 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
52 # pragma message("GLM: GLM_GTX_rotate_normalized_axis extension included")
53 #endif
54
55 namespace glm
56 {
59
71 template <typename T, precision P>
72 GLM_FUNC_DECL tmat4x4<T, P> rotateNormalizedAxis(
73 tmat4x4<T, P> const & m,
74 T const & angle,
75 tvec3<T, P> const & axis);
76
84 template <typename T, precision P>
85 GLM_FUNC_DECL tquat<T, P> rotateNormalizedAxis(
86 tquat<T, P> const & q,
87 T const & angle,
88 tvec3<T, P> const & axis);
89
91 }//namespace glm
92
93 #include "rotate_normalized_axis.inl"
glm::rotateNormalizedAxis
GLM_FUNC_DECL tquat< T, P > rotateNormalizedAxis(tquat< T, P > const &q, T const &angle, tvec3< T, P > const &axis)
Rotates a quaternion from a vector of 3 components normalized axis and an angle.
glm::axis
GLM_FUNC_DECL tvec3< T, P > axis(tquat< T, P > const &x)
Returns the q rotation axis.
glm
Definition: _noise.hpp:40
glm::angle
GLM_FUNC_DECL T angle(tquat< T, P > const &x)
Returns the quaternion rotation angle.