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