The convexhull command uses the Graham scanning algorithm to find the convex hull of a set of points.
convexhull takes as argument a list of points.
convexhull returns the vertices of the convex hull of the
points.
Input:
Output:
To draw the hull, use the polygon command with the output of
convexhull.
Input:
Output: