Mail Archives: djgpp/1998/03/01/00:47:46
BTW if you wish to use the angle measure in grads, there are 400 in a
circle so you'd use cos(angle*pi/200). For degrees you'd use
cos(angle*pi/180). You might want to precalculate pi/200 or pi/180 instead
of redoing this division every time, for speed's sake. (GCC's optimizer
would probably CSE it out and do it once for each cos/sin pair, but this
allows the division to be done once per run of the program.)
--
.*. Friendship, companionship, love, and having fun are the reasons for
-() < life. All else; sex, money, fame, etc.; are just to get/express these.
`*' Send any and all mail with attachments to the hotmail address please.
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca pgd73 AT hotmail DOT com
- Raw text -