Question d’entretien chez Valve Corporation

How do you calculate the distance between two rectangles? (in code)