ATG2 (arctangent)

Calculates arctangent.

Syntax

ATG4f x [in,4f], y [in,4f], dest [out,4f] ;code:79
ATG8f x [in,8f], y [in,8f], dest [out,8f] ;code:80

Description

This instruction calculates expression with arctangent: dest = atg(y/x).

It is useful if you want to determine the angle in radians while you have X and Y coordinates of the point.

If x is 0, dest is set to 0.