On Thu, 20 Apr 2006 rodrigo@anorg.net wrote:
is there an abstraction or external to transform 3D cartesian coordinates to polar ones? If you can give me a hint, you would save me the trigonometrical pain (I'm bad at this stuff).
Three-dimensional? You mean cylindrical or spherical?
BTW no-one agrees on how to do spherical, so from one formula to another, cos and sin are often swapped, sign changes, order of arguments change, etc.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada