0.9.8: rotate_normalized_axis.hpp Source File

| 0.9.8

- Main Page
- Modules
- Files

- File List

rotate_normalized_axis.hpp
Go to the documentation of this file.
1
15 #pragma once
16
17 // Dependency:
18 #include "../glm.hpp"
19 #include "../gtc/epsilon.hpp"
20 #include "../gtc/quaternion.hpp"
21
22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
23 # pragma message("GLM: GLM_GTX_rotate_normalized_axis extension included")
24 #endif
25
26 namespace glm
27 {
30
42 template <typename T, precision P>
43 GLM_FUNC_DECL tmat4x4<T, P> rotateNormalizedAxis(
44 tmat4x4<T, P> const & m,
45 T const & angle,
46 tvec3<T, P> const & axis);
47
55 template <typename T, precision P>
56 GLM_FUNC_DECL tquat<T, P> rotateNormalizedAxis(
57 tquat<T, P> const & q,
58 T const & angle,
59 tvec3<T, P> const & axis);
60
62 }//namespace glm
63
64 #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
Definition: _noise.hpp:11
glm::axis
GLM_FUNC_DECL tvec3< T, P > axis(tquat< T, P > const &x)
Returns the q rotation axis.
glm::angle
GLM_FUNC_DECL T angle(tquat< T, P > const &x)
Returns the quaternion rotation angle.