package primitives.spaces;
import java.awt.Dimension;
import primitives.geomtry.*	  ;
public class NonLinearMovement extends CircleSpace{
	public NonLinearMovement(Dimension d){
		super(d,0,Math.PI*2);
		state.move(d.width/2,d.height/2-r);
	}
	public void changeState(){
		double currentAngle = machine.getCurrentAngle();
		if ((currentAngle%(Math.PI*2)<Math.PI)) this.currentAngle = this.currentAngle+1.8*dalpha;
		else this.currentAngle =  this.currentAngle+0.2*dalpha;
		state = Geomtry.getPointByVector(dcenter,r,this.currentAngle).toPoint();
	}
}