operator - method

  1. @override
CustomPoint<T> operator -(
  1. Point<num> 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 other) {
  return CustomPoint<T>((x - other.x) as T, (y - other.y) as T);
}