atan2 (Function) |
Top Previous Next |
This function returns the principal value of the arc tangent of argument a divided by argument b. The sign of both arguments are taken into account in order to determine the quadrant of the resulting value.
Note: This function works with DOUBLE, but can also work with FLOAT as described in the Floating-point math introductory section.
Input: A : DOUBLE Value representing the proportion of the y-coordinate.
B : DOUBLE Value representing the proportion of the x-coordinate.
Returns: DOUBLE The arch tangent of the value in radians.
Declaration: FUNCTION atan2 : DOUBLE;
Example: INCLUDE rtcu.inc |