DiGrande.it
Braille and Technologies for Visual Impairment

ArcTan2- Returns the angle between the X-axis and a segment of a line

Function that returns the arctangent of a pair of coordinates, angle expressed in radians.

- ArcTan2(X,Y): float

Parameters:

- Float X: The X coordinate of the segment from which the angle is to be taken;

- Float Y: The Y coordinate of the segment from which to derive the angle;

Description:

Use the ArcTan2 function to derive the angle between the X-axis and a line segment from the 0-0 origin to a pair of X-Y coordinates. The resulting angle is expressed in radians with a value between -PiGreek/2 and PiGreek/2.

To express the arc tangent in degrees, multiply the result by 180/PiGreek or use the conversion instruction.