Template Function TRAP::Math::Axis#

Function Documentation#

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

Retrieve the rotation axis of a quaternion.

Parameters:

x – Quaternion.

Returns:

Rotation axis.