21 #include "../trigonometric.hpp" 22 #include "../exponential.hpp" 27 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) 28 # pragma message("GLM: GLM_EXT_quaternion_trigonometric extension included") 40 template<
typename T, qualifier Q>
41 GLM_FUNC_DECL T
angle(qua<T, Q>
const& x);
47 template<
typename T, qualifier Q>
48 GLM_FUNC_DECL vec<3, T, Q>
axis(qua<T, Q>
const& x);
57 template<
typename T, qualifier Q>
63 #include "quaternion_trigonometric.inl" GLM_FUNC_DECL qua< T, Q > angleAxis(T const &angle, vec< 3, T, Q > const &axis)
Build a quaternion from an angle and a normalized axis.
GLM_EXT_vector_relational
GLM_FUNC_DECL vec< 3, T, Q > axis(qua< T, Q > const &x)
Returns the q rotation axis.
GLM_FUNC_DECL T angle(qua< T, Q > const &x)
Returns the quaternion rotation angle.