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