Template Function TRAP::Math::Length(const Vec<L, T>&)#

Function Documentation#

template<u32 L, typename T>
constexpr T TRAP::Math::Length(const Vec<L, T> &v)#

Calculates the length of a vector.

Parameters:

v – Specifies a vector of which to calculate the length.

Returns:

Length of x, i.e., Sqrt(x * x).