#### 7.10.8 Cvx2d

• Cvx2d( <list> )
• Description: returns the convex hull of the <list> following the RONALD GRAHAM algorithm. The <list> does not contain the jump constant.
• Exemple(s)$10$ points are randomly chosen in the pavement $\left[-4,4\right]×\left[-4,4\right]$ and placed in the variable $P$ and each is drawn with its number, then the convex hull is drawn.

 \begin{texgraph}[name=Cvx2d, export=pgf]   Marges(0,0,0,0),size(7.5),   P:= for k from 1 to 10 do       z:=8*Rand()-4+i*(8*Rand()-4),       LabelDot(z, k,"N",1), z       od,   Ligne(Cvx2d(P),1)   \end{texgraph}

Cvx2d macro