code: public int currentSegment(double[] coords) {
  		if (isDone()) {
  			throw new NoSuchElementException("line iterator out of bounds");
  		}
  		int type = (index==0)?SEG_MOVETO:SEG_LINETO;
  		coords[0] = poly.x[index];
  		coords[1] = poly.y[index];
  		if (affine != null) {
  			affine.transform(coords, 0, coords, 0, 1);
  		}
  		return type;
  	}
docs: Returns the coordinates and type of the current path segment in
  the iteration. The return value is the path segment type:
  SEG_MOVETO, SEG_LINETO, SEG_QUADTO, SEG_CUBICTO, or SEG_CLOSE.
  A double array of length 6 must be passed in and may be used to
  store the coordinates of the point(s).
  Each point is stored as a pair of double x,y coordinates.
  SEG_MOVETO and SEG_LINETO types will return one point,
  SEG_QUADTO will return two points,
  SEG_CUBICTO will return 3 points
  and SEG_CLOSE will not return any points.
  @see #SEG_MOVETO
  @see #SEG_LINETO
  @see #SEG_QUADTO
  @see #SEG_CUBICTO
  @see #SEG_CLOSE
  @see java.awt.geom.PathIterator#currentSegment(double[])