add method

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

Add other to this Point.

Implementation

Point<int> add(Point<int> other) {
  return Point(x + other.x, y + other.y);
}