Template Function TRAP::Math::Mat3Cast#

Function Documentation#

template<typename T>
constexpr Mat<3, 3, T> TRAP::Math::Mat3Cast(const tQuat<T> &q) noexcept#

Converts a quaternion to a 3 * 3 matrix.

Parameters:

q – Quaternion to convert.

Returns:

Converted matrix.