Source: https://maths.discip.ac-caen.fr/IMG/pdf/aire_minimale_polygone_dans_rectangle_2_.pdf