operator - method

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

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);
}