add method

Point<double> add(
  1. Point<num> other
)

Add other to this Point.

Implementation

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