Example #1
0
 /** Returns the number of dimensions within the {@link Position}. */
 @Override
 public int numDimensions() {
   return parentSpace.numDimensions();
 }
Example #2
0
 /**
  * Constructor - takes an {@link Extents} object that represents the parent space to iterate
  * within.
  */
 public Position(final Extents parentSpace) {
   this.parentSpace = parentSpace;
   this.position = new long[parentSpace.numDimensions()];
   // ImgLib convention - start out of bounds
   reset();
 }