subtract method

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

Subtract other from this Point.

Implementation

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