Class StrideLocationIterator

java.lang.Object
noaa.coastwatch.util.StrideLocationIterator
All Implemented Interfaces:
Iterator<DataLocation>, DataLocationIterator, ResettableIterator

public class StrideLocationIterator extends Object implements DataLocationIterator
The StrideLocationIterator class iterates over data locations using a constant step stride vector. See DataLocation.increment(int[],int[]) for details on how the locations are incremented with a stride.
Since:
3.1.7
Author:
Peter Hollemans
  • Constructor Details

    • StrideLocationIterator

      public StrideLocationIterator(DataLocation start, DataLocation end, int[] stride)
      Creates a new stride location iterator.
      Parameters:
      start - the starting data location.
      end - the ending data location.
      stride - the data location stride in each dimension.
  • Method Details