
sin and cos
Hi. This is a very simple question;
I'm was making some rotation functions when I realized that sin() and cos() worked with Radians. Is there anyway to get it to work with degrees? I'm much more used to it.
If there isn't a way, can anyone give me the convertion formula from Rad to Deg?
Thanks.

180 degress == PI radians
so
radians = degrees / 180 * PI

It would be good to write your own convert functions torad and todeg in which you can use formula:
rad=deg/180*PI
(deg=rad*180/PI)
and call for example
sin(torad(90));
where 90 is angle in Deg