Example #1
0
 public Point2D sub(Vector2D p2) {
   return new Point2D(x - p2.getX(), y - p2.getY());
 }
Example #2
0
 public Point2D add(Vector2D p2) {
   return new Point2D(x + p2.getX(), y + p2.getY());
 }