public final void turnTo(double angle){
  angle=Geometric.clampAngleDegree(angle);
  orientation=Geometric.clampAngleDegree(angle);
  Geometric.rotateTo(velocity,Math.toRadians(orientation));
}

public final void turnTo ( double angle ) { angle = Geometric . clampAngleDegree ( angle ) ; orientation = Geometric . clampAngleDegree ( angle ) ; Geometric . rotateTo ( velocity , Math . toRadians ( orientation ) ) ; }
turn the agent to the given angle given in degrees .
