View Single Post
Old 28th April 2003, 16:09   #77
Whacked Moderator
UnConeD's Avatar
Join Date: Jun 2001
Posts: 2,104
About atan2... you got one detail wrong. In a mathematical coordinate system, the angle for (x,y) with regard to the positive x axis is atan(y/x), not atan(x/y).

By the way, you can imagine atan2 to be the same as this, except that atan2 can also handle the cases where x and/or y is 0:


UnConeD is offline   Reply With Quote