The atan2 Statement
The atan2 statement lets you calculate the arc tangent value of its two input (second and third) arguments and store the result (radians) in its output (first) argument. The syntax of the atan2 statement is shown below.
atan2 result, y, x // store the arc tangent of y/x in result