operator - method

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

Create new CustomPoint where x and y values are subtracted from other point x and y values

Implementation

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