Source: http://ressources.unisciel.fr/algoprog/s81geom/emodules/ge02mexerc1/res/ge02exerc1-cresolu-py-xxx.pdf