Jeppe Nielsen #2 Function Angle#(dx1,dy1,dx2,dy2) return atan2(dy2,dx2)-atan2(dy1,dx1) End function Hope it is of some use :)