operator + method

Vector operator + (
  1. Vector other
)

Implementation

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