You can use atanfull to get the angle too.
Function FPA_FINDANGLE(fromx# as float,fromy# as float,tox# as float toy# as float)
//***************************************************************************************
//* *
//* This function returns the angle of 2 points in a normal plane. (2d) *
//* *
//***************************************************************************************
local var_angle# as float
local var_XD# as float
local var_YD# as float
var_XD# = fromx#-tox#
var_YD# = fromy#-toy#
var_Angle# = wrapvalue(180.0-ATANFULL(xd#,yd#))
Endfunction var_angle#
No place like 127.0.0.1 .