Template Function TRAP::Math::Length(const tQuat<T>&)#

Function Documentation#

template<typename T>
constexpr T TRAP::Math::Length(const tQuat<T> &q)#

Calculates the length of a vector.

Parameters:

q – Specifies a quaternion of which to calculate the length.

Returns:

Norm of a quaternion.