Re: Math.cos() problems



On Wed, 05 Dec 2007 22:08:06 -0500, Brandon McCombs <none@xxxxxxxx>
wrote, quoted or indirectly quoted someone who said :

x = rCos(angle) and y = rSin(angle)

cos and sin have no connection to screen co-ordinates. They work in
radians.

To do co-ordinate transformations, you don't normally need to do trig
directly. You use affine transforms.

See http://mindprod.com/jgloss/affinetransform.html
and http://mindprod.com/jgloss/coordinates.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.