subtract method

Point<int> subtract(
  1. Point<int> other
)

Subtract other from this Point.

Implementation

Point<int> subtract(Point<int> other) {
  return Point(x - other.x, y - other.y);
}