ATAN2 function
Synopsis
This function
returns the angle, in degrees, formed by the Cartesian plane's
X-axis and a line between the specified point and the origin.
Variations
ATAN2(
NumberY,
NumberX)
Returns the angle formed by the
X-axis and the specified point.
Details |
Examples |
Details and examples
Parameters
NumberY
Specifies the Y-coordinate of the point.
Supported types: Numeric.
NumberX
Specifies the X-coordinate of the point.
Supported types: Numeric.
Returns
Examples
1. |
The following example returns 45.
ATAN2(100,100)
|
2. |
The following example returns 0.
ATAN2(0,100)
|
3. |
The following example returns 90.
ATAN2(100,0)
|