Find the distance between two points on a rectangular box.