Source: http://mathacoeur.com/documents/131-Produit_scalaire.pdf