2.5.4.8 ATan2
The ATan2 function calculates the angle between the positive x-axis and a vector.
ABNF:
-
ATan2 = val val " ATAN2():128"
Required Arguments:
Name: Arg1
Type: vDouble
An argument that specifies the y-component of the vector.
Name: Arg2
Type: vDouble
An argument that specifies the x-component of the vector.
Return Value:
Type: PtgAngDft
This function returns a PtgAngDft containing the angle between the positive x-axis and the vector represented by Arg1 and Arg2. The value is greater than -pi and less than or equal to pi. If Arg1 is equal to zero and Arg2 is equal to zero, the value is zero.