operator - method

Point operator -(
  1. Point other
)

Subtract other from this point (vector subtraction).

Implementation

Point operator -(Point other) => Point(x - other.x, y - other.y);