0.9.9 API documenation
Functions
GLM_EXT_quaternion_trigonometric

Functions

template<typename T , qualifier Q>
GLM_FUNC_DECL T angle (qua< T, Q > const &x)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL qua< T, Q > angleAxis (T const &angle, vec< 3, T, Q > const &axis)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL vec< 3, T, Q > axis (qua< T, Q > const &x)
 

Detailed Description

Provides trigonometric functions for quaternion types.

Include <glm/ext/quaternion_trigonometric.hpp> to use the features of this extension.

See also
GLM_EXT_quaternion_float
GLM_EXT_quaternion_double
GLM_EXT_quaternion_exponential
GLM_EXT_quaternion_geometric
GLM_EXT_quaternion_relational
GLM_EXT_quaternion_transform

Function Documentation

◆ angle()

GLM_FUNC_DECL T glm::angle ( qua< T, Q > const &  x)

Returns the quaternion rotation angle.

Template Parameters
TA floating-point scalar type
QA value from qualifier enum

◆ angleAxis()

GLM_FUNC_DECL qua<T, Q> glm::angleAxis ( T const &  angle,
vec< 3, T, Q > const &  axis 
)

Build a quaternion from an angle and a normalized axis.

Parameters
angleAngle expressed in radians.
axisAxis of the quaternion, must be normalized.
Template Parameters
TA floating-point scalar type
QA value from qualifier enum

◆ axis()

GLM_FUNC_DECL vec<3, T, Q> glm::axis ( qua< T, Q > const &  x)

Returns the q rotation axis.

Template Parameters
TA floating-point scalar type
QA value from qualifier enum