Given two straight lines, the Pythagorean Theorem allows you to calculate the length of the diagonal connecting them. This application is frequently used in architecture, woodworking, or other physical construction projects. For instance, say you are building a sloped roof. If you know the height of the roof and the length for it to cover, you can use the Pythagorean Theorem to find the diagonal length of the roof's slope. You can use this information to cut properly sized beams to support the roof, or calculate the area of the roof that you would need to shingle.