Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

sqrt((X2-X1)^2 + (Y2-Y1)^2)

If fo example box1.center = X1,Y1 and box2.center = X2,Y2 , then your answer is:

sqrt((X2-X1)^2 + (Y2-Y1)^2)

If fo example If, for example, box1.center = X1,Y1 and box2.center = X2,Y2 , then your answer is:

sqrt((X2-X1)^2 + (Y2-Y1)^2)