#define script0 //--please note that x1 and y1 are smaller than x2 and y2--// x1=0 x2=0 y1=50 y2=50 xdistance=x2-x1 ydistance=y2-y1 distance=(xdistance*xdistance)+(ydistance*ydistance) distance=distance*distance distance=sqrt(distance)