operator - method

Offset operator -(
  1. Offset other
)

Returns this offset decremented by the provided other offset.

Implementation

Offset operator -(Offset other) {
  return Offset(x - other.x, y - other.y);
}