Mail Archives: djgpp/1997/03/25/20:07:20
At , you wrote:
>I'm trying to write a routine that spins a pixel around in a circle. That
>works ok so far, except that the X and Y points are never next to each
>other - I think I have narrowed it down to the results I am getting from
>using COS and SIN.
The cos and sin functions take and give radials (circle is 2*Pi rad). On
your calculator you used degrees (circle is 360 deg).
So, convert your numbers in the program to radials.
Erik Post
Student Computer Sciences at University of Twente, The Netherlands
e-mail: erik DOT post AT student DOT utwente DOT nl
- Raw text -