Source: https://maths.ac-noumea.nc/IMG/pdf/Produit-Scalaire-2.pdf