atan2 returns the principal value of the arc tangent of <var1>/<var2>, and the signs of the two arguments are used to determine the quadrant of the result (which is betwen -pi and pi). <var1> and <var2> are a number or a double and the result is a double.