vec3:__unm

Returns a new vector with the negated components of the original.

negated = vec3:__unm(v)

Arguments

NameTypeDescription
vvec3The first vector.

Returns

NameTypeDescription
negatedvec3The result.

See also