Template Function TRAP::Math::Abs(Mat<C, R, T>)#

Function Documentation#

template<u32 C, u32 R, typename T>
constexpr Mat<C, R, T> TRAP::Math::Abs(Mat<C, R, 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.