Ejemplo n.º 1
0
 public void subtract(Force other) {
   if (other != null) {
     x -= other.x();
     y -= other.y();
   }
 }
Ejemplo n.º 2
0
 public void add(Force other) {
   if (other != null) {
     x += other.x();
     y += other.y();
   }
 }