/** * NOTE: nextY() MUST BE CALLED before this method is called! * * @return gives the x of the current iterator position */ public final int nextX() { return computeNextXAndProgress(); }
@Override public ShortPoint2D next() { int y = currentY + centerY; int x = computeNextXAndProgress(); return new ShortPoint2D(x, y); }