Source: https://www.irif.fr/~emiquey/MathsJPS/convexite.pdf