Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

click to hide/show revision 2
No.2 Revision

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

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

click to hide/show revision 3
No.3 Revision

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)