Source: https://mathsfg.net.free.fr/premiere/1S2011/produitscalaire/produitscalairecours1S.pdf