Source: http://www.college-therouanne.net/vie_au_college/les_cours/math/cours4/proprietes_triangle_rectangle.pdf