The atan2 method returns the arctangent of the quotient of its arguments, as a numeric value between PI and -PI radians.
System.Double atan2(System.Double y, System.Double x);
y
y coordinate
x
x coordinate
Returns the arctangent of a number. If the parameter x is outside the range -PI/2 to PI/2, the method will return NaN.
Member of Math.