I draw a triangle with the hypotenuse along the diagonal line that I want to measure. I count the lengths of the legs and substitute them for a and b in the Pythagorean Theorem. Then I can solve for c to find its length.