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