0.9.9 API documenation

- 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 #ifndef GLM_ENABLE_EXPERIMENTAL
23 # error "GLM: GLM_GTX_rotate_normalized_axis 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."
24 #endif
25
26 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
27 # pragma message("GLM: GLM_GTX_rotate_normalized_axis extension included")
28 #endif
29
30 namespace glm
31 {
34
46 template<typename T, qualifier P>
47 GLM_FUNC_DECL mat<4, 4, T, P> rotateNormalizedAxis(
48 mat<4, 4, T, P> const& m,
49 T const & angle,
50 vec<3, T, P> const & axis);
51
59 template<typename T, qualifier P>
60 GLM_FUNC_DECL tquat<T, P> rotateNormalizedAxis(
61 tquat<T, P> const & q,
62 T const & angle,
63 vec<3, T, P> const & axis);
64
66 }//namespace glm
67
68 #include "rotate_normalized_axis.inl"
glm
Definition: _noise.hpp:11
glm::angle
GLM_FUNC_DECL T angle(tquat< T, P > const &x)
Returns the quaternion rotation angle.
glm::axis
GLM_FUNC_DECL vec< 3, T, P > axis(tquat< T, P > const &x)
Returns the q rotation axis.
glm::rotateNormalizedAxis
GLM_FUNC_DECL tquat< T, P > rotateNormalizedAxis(tquat< T, P > const &q, T const &angle, vec< 3, T, P > const &axis)
Rotates a quaternion from a vector of 3 components normalized axis and an angle.