Source: https://picamaths.files.wordpress.com/2014/05/mc3a9thode-rectangle-et-trapc3a8ze.pdf