operator + method

VectorDefinition operator +(
  1. VectorDefinition other
)

Implementation

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