Please enable JavaScript to view this site.

ESL Documentation

MATHLIB Function

Return the angle of a specified tangent.

ARCTAN(X_FV)

X_FV

A floating point tangent value in the range -1.0 to 1.0, inclusive, whose degree value you want returned.

Description

Use this function to return the angle in degrees whose tangent is X. ARCTAN( ) returns the angle in degrees of a line that passes through the points 0,0 and X,Y. The float value returned is in the range -180 to +180. If the tangent is positive, the value of this function is the same as the value of the function ARCTAN(Y/X), where the Y coordinate is divided by the X coordinate.