Main sections
ATAN()
v=ATAN(dy#, dx#)
ATAN returns the arctangent of dy# divided by dx#. The result is in the range -180 to 180 (degrees).
Sample:
dx# = -1
dy# = -1
result# = ATAN(dy#,dx)
PRINT "ATAN result = " + result,0,10
SHOWSCREEN
MOUSEWAIT
Output:
ATAN result = -135