operator + method

IntOffset operator +(
  1. IntOffset other
)

Adds two IntOffsets and returns their sum as a new IntOffset.

The resulting offset has coordinates that are the sum of the coordinates of the two operands.

Implementation

IntOffset operator +(IntOffset other) => IntOffset(x + other.x, y + other.y);