Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 2
    Thanks, the solution is simply math.atan2(x, y) the solution in in radians. Commented Aug 20, 2012 at 13:45
  • I'm glad I could help! Keep in mind, with math.atan2, 0 represents east. If this was the best answer, don't forget to accept!
    – danmcardle
    Commented Aug 20, 2012 at 13:47