public NDOffsetIncrementor(Shape shape) { this.shape = shape; incr = new NDCoordinatesIncrementor(shape.dimensions); index = incr.Index; hasNext = true; }
public NDOffsetIncrementorAutoresetting(Shape shape) { this.shape = shape; incr = new NDCoordinatesIncrementor(shape.dimensions, incrementor => incrementor.Reset()); index = incr.Index; }