operator + method

Offset operator +(
  1. Offset other
)

Returns this offset incremented by the provided other offset.

Implementation

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