Template Function TRAP::Math::QuaternionCast(const Mat<4, 4, T>&)#

Function Documentation#

template<typename T>
constexpr tQuat<T> TRAP::Math::QuaternionCast(const Mat<4, 4, T> &m)#

Converts a pure rotation 4 * 4 matrix to a quaternion.

Parameters:

m – Pure rotation matrix to convert.

Returns:

Converted quaternion.