abs

Calculate the absolute value of the array.

nothrow @safe
T
abs
(
T
)
()

Examples

assert(abs(vector(-1, 0, 90)) == vector(1, 0, 90));

Meta