Use sin(), cos(), tan(), acos(), atan(), and atan2() to compute trigonometric relationships
Compute the arctangent of a double-precision floating-point number.
Compute the angle in the plane (in radians) between the positive x-axis and the ray from (0,0) to the point (x,y).
A JavaScript function to calculate the angle between two coordinates