4
Contributors
6
Replies
7
Views
5 Years
Discussion Span
Last Post by Labdabeta
0

That thread asked the exact question I need an answer to actually and that atan2 function looks promising. But I cant get it to work. Here is a better question for my needs: I have two points, (x1,y1) and (x2,y2) and I need to get their angle in degrees clockwise from pure "North". How do I do this?

1

If I remember correctly, atan() takes radiant value, not degree. The atan2() takes the diff of y and diff of x (y2-y1, x2-x1).

0

Taywin's right - the Math trig functions work in radians, not degrees (2*Pi radians = 360 degrees). Also I think zero angle is pure "East" (is along the x axis), not North.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.