unaryMinus

operator fun unaryMinus(): Vec3(source)

Negates the vector, i.e., multiplies each component by -1.

Return

A new vector with each component negated.

The negated vector.