ATan2(X: Double; Y: Double): Double;
X. Point coordinate.
Y. Point coordinate.
The ATan2 method returns the arctangent for specified X and Y coordinates.
Parameter values cannot be empty.
Both arguments X and Y cannot be equal to 0 at a time.
To execute the example, add a link to the MathFin system assembly.
Sub UserProc;
Var
r: Double;
Begin
r := Math.ATan2(1, 1);
Debug.WriteLine(r);
End Sub UserProc;
After executing the example the console window displays the arctangent of set coordinates X and Y equal to 0.785398163397448.
See also: