/** * Draws this two-dimensional interval to standard draw. */ public void draw() { double xc = (x.min() + x.max()) / 2.0; double yc = (y.min() + y.max()) / 2.0; StdDraw.rectangle(xc, yc, x.length() / 2.0, y.length() / 2.0); }