19 #include "../gtc/epsilon.hpp"
20 #include "../gtc/quaternion.hpp"
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."
26 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
27 # pragma message("GLM: GLM_GTX_rotate_normalized_axis extension included")
46 template<
typename T, qualifier Q>
48 mat<4, 4, T, Q>
const& m,
50 vec<3, T, Q>
const&
axis);
59 template<
typename T, qualifier Q>
63 vec<3, T, Q>
const&
axis);
68 #include "rotate_normalized_axis.inl"
GLM_FUNC_DECL tquat< T, Q > rotateNormalizedAxis(tquat< T, Q > const &q, T const &angle, vec< 3, T, Q > const &axis)
Rotates a quaternion from a vector of 3 components normalized axis and an angle.
GLM_FUNC_DECL vec< 3, T, Q > axis(tquat< T, Q > const &x)
Returns the q rotation axis.
GLM_FUNC_DECL T angle(tquat< T, Q > const &x)
Returns the quaternion rotation angle.