This function gets the difference between two angles.
For example, if you put in 0 for a1#, and 350 for a2#, it returns -10, rather than 350.
Code:
function AngDif(a1#,a2#) `angle difference
a2# = (a2#-a1#) mod 360
if a2# > 180 then a2#=a2#-360
endfunction a2#
No votes yet