atan2

The atan2 method returns the arctangent of the quotient of its arguments, as a numeric value between PI and -PI radians.

 

Syntax

System.Double atan2(System.Double y, System.Double x);

 

Parameters

y

y coordinate

x

x coordinate

 

Return Value

Returns the arctangent of a number. If the parameter x is outside the range -PI/2 to PI/2, the method will return NaN.

 

Remarks

Member of Math.

 

Example