global func ObjectDistance(pObj1, pObj2) { var dx = GetX(pObj1) - GetX(pObj2); var dy = GetY(pObj1) - GetY(pObj2); return(Sqrt(dx*dx+dy*dy)); }
ObjectDistance