operator - method

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

Subtract other from this, as if both points were vectors.

Returns the resulting "vector" as a Point.

Implementation

@override
CustomPoint<T> operator -(math.Point<T> other) {
  return CustomPoint<T>(x - other.x, y - other.y);
}