19 #include "../gtc/epsilon.hpp"
20 #include "../gtc/quaternion.hpp"
22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
23 # pragma message("GLM: GLM_GTX_rotate_normalized_axis extension included")
42 template <
typename T, precision P>
44 tmat4x4<T, P>
const & m,
46 tvec3<T, P>
const &
axis);
55 template <
typename T, precision P>
57 tquat<T, P>
const & q,
59 tvec3<T, P>
const &
axis);
64 #include "rotate_normalized_axis.inl"
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_FUNC_DECL tvec3< T, P > axis(tquat< T, P > const &x)
Returns the q rotation axis.
GLM_FUNC_DECL T angle(tquat< T, P > const &x)
Returns the quaternion rotation angle.