Template Function TRAP::Math::Mat4Cast#

Function Documentation#

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

Converts a quaternion to a 4 * 4 matrix.

Parameters:

q – Quaternion to convert.

Returns:

Converted matrix.