Source: https://www.maths-france.fr/Terminale/TerminaleS/Cours/14-produit-scalaire.pdf