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

Function Documentation#

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

Calculate the normalized product.

Parameters:

x – Specifies the vector to normalize.

Returns:

Vector in the same direction as x but with a length of 1.