1.0.0 API documentation
quaternion_trigonometric.hpp
Go to the documentation of this file.
1 
18 #pragma once
19 
20 // Dependency:
21 #include "../trigonometric.hpp"
22 #include "../exponential.hpp"
23 #include "scalar_constants.hpp"
24 #include "vector_relational.hpp"
25 #include <limits>
26 
27 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
28 # pragma message("GLM: GLM_EXT_quaternion_trigonometric extension included")
29 #endif
30 
31 namespace glm
32 {
35 
42  template<typename T, qualifier Q>
43  GLM_FUNC_DECL T angle(qua<T, Q> const& x);
44 
49  template<typename T, qualifier Q>
50  GLM_FUNC_DECL vec<3, T, Q> axis(qua<T, Q> const& x);
51 
59  template<typename T, qualifier Q>
60  GLM_FUNC_DECL qua<T, Q> angleAxis(T const& angle, vec<3, T, Q> const& axis);
61 
63 } //namespace glm
64 
65 #include "quaternion_trigonometric.inl"
glm::angle
GLM_FUNC_DECL T angle(qua< T, Q > const &x)
Returns the quaternion rotation angle.
glm::axis
GLM_FUNC_DECL vec< 3, T, Q > axis(qua< T, Q > const &x)
Returns the q rotation axis.
vector_relational.hpp
Core features
scalar_constants.hpp
GLM_EXT_scalar_constants
glm::angleAxis
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.