Water 5-Common Data Types-Number
method number.double.atan2
Return arc tangent of a pair of measurements
Contract
Return typewob
Parameter keyDefault valueType
xreqnumber
Water Contract
<method number.double.atan2
  x=req=number/>

See also: cos, acos, cosh, sin, asin, sinh, tan, atan, tanh, radians_to_degrees, degrees_to_radians, double



Returns the arc tangent of a _subject of type double representing the y value, and its corresponding partner x . The advantage of atan2 over atan is that it can determine in which quadrant the angle lies.

Example: x and y values of a 30 degree angle
1.0.<atan2 3.0.<sqrt /> />.<radians_to_degrees />
30.000000000000004
Example: x and y values of a -30 degree angle
-1.0.<atan2 3.0.<sqrt /> />.<radians_to_degrees />
-30.000000000000004