Template Function TRAP::Math::Abs(Vec<L, T>)#

Function Documentation#

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

Retrieve the absolute value of x.

Parameters:

x – Specify the value of which to return the absolute.

Returns:

x if x >= 0; otherwise it returns -x.