operator unary- method

Offset operator unary- ()

Unary negation operator.

Returns an offset with the coordinates negated.

If the Offset represents an arrow on a plane, this operator returns the same arrow but pointing in the reverse direction.

Implementation

Offset operator -() => new Offset(-dx, -dy);