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. I hope this helps!