Distance of two MC's?

hi, I need help on getting the distance between two MC’s but not just how far on x and y but the actual diagonal distance.

thanks in advance!