Atan2
Math.atan2(x,y)
Helpless Hawk
Math.atan2(x,y)
atan2() returns the inverse tangent of a coordinate in radians.
atan(y,x)
Range [-pi,pi]
// convert result to degrees
double degree = result * (180 / 3.141592);