I got found the maths package, but I can't find out how to use them. Help?
static double x, y;
GreenfootImage line=new GreenfootImage(600,600);
public void act() {
y=Math.sin(x);
line.setColor(Color.RED);
line.drawLine((int)x,(int)y,(int)x,(int)y);
setImage(line);
}
y = Math.sin((double) 0.5);
line.drawLine((int)x, (int)y, (int)(x + 1), (int)y);