import java.util.*; public class Hull { // Maintain hull points internally: private Pointd[] hull; private int hullSize; // Constructor that takes the point set public Hull (Pointd[] points) { Pointd[] vertices; int i, n; // record the number of points in the point set: n = points.length; // 0. Make a copy of the vertices because we'll need to sort: vertices = new Pointd[n]; for (i=0; i