ATANFULL

This command will return the angle of two points in degrees between 0 and 360.

  Syntax
Return Float=ATANFULL(Distance X, Distance Y)
  Parameters
Distance X
Float
This value is a float number such as 0.5
Distance Y
Float
This value is a float number such as 0.5

  Returns

This value is a float number such as 0.5

  Description

The distance values are calculated by finding the distance between two points for both the X and Y axis. The distance values can be a real or integer number. The return value is a real number.

  Example Code
x1#=0
y1#=0
x2#=640
y2#=480
dx#=ABS(x1#-x2#)
dy#=ABS(y1#-y2#)
angle#=ATANFULL(dx#,dy#)
PRINT angle#
WAIT KEY
  See also

CORE Commands Menu
Index