pi.next();
assertEquals(PathIterator.SEG_LINETO, pi.currentSegment(coords));
xs.add(coords[0]);
ys.add(coords[1]);
pi.next();
assertEquals(PathIterator.SEG_CLOSE, pi.currentSegment(coords));
double xMin = Double.MAX_VALUE, yMin = Double.MAX_VALUE;
double xMax = Double.MIN_VALUE, yMax = Double.MIN_VALUE;
int i=0, size = xs.size();
double val;