Water 5-Common Data Types-NumberReturn arc tangent of a pair of measurements
Contract| Return type | wob | | Parameter key | Default value | Type | | x | req | number | | 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 |
© Copyright 2007 Clear Methods, Inc.