/** Returns the number of dimensions within the {@link Position}. */ @Override public int numDimensions() { return parentSpace.numDimensions(); }
/** * 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(); }