ATN2
 
ATN2 returns the angle between the positive real x-axis and a vector to the point (x,y) as apposed to ATN which does not calculate correct angles for points in the 2nd and 3rd quadrants.