Please enable JavaScript to view this site.

ESL Documentation

MATHLIB Function

Return the angle in degrees whose tangent is Y/X.

ARCTAN2(X_FV, Y_FV)

X_FV

Y_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 a floating point value that is the angle in degrees whose tangent is Y/X. This value will be in the range -180 to +180 degrees.

Errors

ARCTAN2: both arguments = 0; returning -1.0.

Both X and Y cannot be 0.0, or the function returns the value -1.0 and places this message in the ESL errorlog.