operator + method

Position operator +(
  1. Position other
)

Implementation

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