Source: https://cours-examens.org/images/Etudes_secondaires/3_AM/Math_serie/Geometrie/3-triangles%20rectangles.pdf