IMath.ATan2

Fore Syntax

ATan2(X: Double; Y: Double): Double;

Fore.NET Syntax

ATan2(X: double; Y: double): double;

Parameters

X. Point coordinate.

Y. Point coordinate.

Description

The ATan2 method returns the arctangent for specified X and Y coordinates.

Comments

Parameter values cannot be empty.

Both arguments X and Y cannot be equal to 0 at a time.

Fore Example

To execute the example, add a link to the MathFin system assembly.

Sub UserProc;
Var
    r: Double;
Begin
    r := Math.ATan2(11);
    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.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.MathFin;

Public Shared Sub Main(Params: StartParams);
Var
    r: double;
    Math: MathClass = New MathClass();
Begin
    r := Math.
ATan2(1,1);
    System.Diagnostics.Debug.WriteLine(r);

End Sub;

See also:

IMath