Name Edit

abs - returns absolute value of scalars and vectors.

Synopsis Edit

vector1 abs(vector1 a);
vector2 abs(vector2 a);
vector3 abs(vector3 a);
vector4 abs(vector4 a);

Parameters Edit


Vector or scalar of which to determine the absolute value.

Description Edit

Returns the absolute value of a scalar or vector.

For vectors, the returned vector contains the absolute value of each element of the input vector.