Source: https://www.astrovirtuel.fr/math/premiere_stl/pstl2016-2017/16pstl_cours09_produit_scalaire.pdf