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?
180 degress == PI radians
radians = degrees / 180 * PI
It would be good to write your own convert functions torad and todeg in which you can use formula:
and call for example
where 90 is angle in Deg