operator + method

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

Create new CustomPoint where other point values x and y are added

Implementation

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