operator - method

Offset operator -(
  1. Offset other
)

Subtracts other offset from this offset.

Implementation

Offset operator -(Offset other) => Offset(dx - other.dx, dy - other.dy);