operator + method

Point<num> operator +(
  1. Point<num> other
)

Adds another point (vector addition).

Implementation

Point<num> operator +(Point<num> other) => Point(x: x + other.x, y: y + other.y);