subtract method

Point subtract(
  1. Point p
)

Implementation

Point subtract(Point p) {
  return Point(x - p.x, y - p.y);
}