public Vect div(Vect b) { return(new Vect(this.x / b.x, this.y / b.y)); }
public Vect mult(Vect b) { return(new Vect(this.x * b.x, this.y * b.y)); }
public Vect sub(Vect b) { return(new Vect(this.x - b.x, this.y - b.y)); }
public Vect add(Vect b) { return(new Vect(this.x + b.x, this.y + b.y)); }
public void update() { vel = pos.sub(oldPos); oldPos = pos; pos = pos.add(vel.add(acc)); }