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