public double heading(){ return Math.atan2(x,y); }
public void wander() { wanderTheta +=(Math.random()*0.2)-0.1; Coord circle = new Coord(vel.x,vel.y); circle.normalize(); circle.multiply(200); circle.add(pos); double heading = vel.heading(); Coord pointOnCircle = new Coord(100*Math.cos(wanderTheta+heading),100*Math.sin(wanderTheta+heading)); pointOnCircle.add(circle); seek(pointOnCircle); }
You must use a Makefile. Please remember to submit a README.txt
This is not your friend’s work. This is not the internet’s work. This is your work...
When you are done you may hand in your lab by using make handin
.
The lab is due at 11:59pm Oct. 31th 2018.