Source: http://math.sicard.free.fr/1S/produit_scalaire/produit_scalaire.pdf