Template Function TRAP::Math::EulerAngles#

Function Documentation#

template<typename T>
constexpr Vec<3, T> TRAP::Math::EulerAngles(const tQuat<T> &q)#

Retrieve Euler angles from a quaternion.

Parameters:

q – Quaternion to retrieve Euler angles from.

Returns:

Euler angles, pitch as x, yaw as y, roll as z. The result is expressed in radians.