Angle between two 2d lines

BlitzPlus Forums/BlitzPlus Programming/Angle between two 2d lines

CyberHeater(Posted 2003) [#1]
Does anyone have a function handy that will tell me the angle between two lines.

Ta.


Jeppe Nielsen(Posted 2003) [#2]

Function Angle#(dx1,dy1,dx2,dy2)

return atan2(dy2,dx2)-atan2(dy1,dx1)

End function



Hope it is of some use :)


CyberHeater(Posted 2003) [#3]
Thanks.