operator + method

  1. @override
Point<T> operator +(
  1. Point<T> other
)
override

Add other to this, as if both points were vectors.

Returns the resulting "vector" as a Point.

Implementation

@override
Point<T> operator +(math.Point<T> other) =>
    Point<T>(x + other.x as T, y + other.y as T);