Source: https://www.clg-zay-verneuil.ac-versailles.fr/IMG/pdf/Applications-du_theoreme_de_Pythagore2-2.pdf