ATANFULL
This command will return the angle of two points in degrees between 0 and 360.
Return Float=ATANFULL(Distance X, Distance Y)
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
This value is a float number such as 0.5
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.
x1#=0
y1#=0
x2#=640
y2#=480
dx#=ABS(x1#-x2#)
dy#=ABS(y1#-y2#)
angle#=ATANFULL(dx#,dy#)
PRINT angle#
WAIT KEY
CORE Commands Menu
Index