unaryMinus
Unary minus operator that subtracts 1.0 from all components.
Example:
val v = Vector(5.0, 3.0, 2.0)
val result = -v // Vector(4.0, 2.0, 1.0)Content copied to clipboard
Return
A new Vector with 1.0 subtracted from all components