1 | initial version |
sqrt((X2-X1)^2 + (Y2-Y1)^2)
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)
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)