Class LineLocationIterator

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

public class LineLocationIterator extends Object implements DataLocationIterator
The LineLocationIterator class iterates over data locations along a line between start and end locations. See LineIterator for details on how the locations are incremented along a line. Currently, only 2D data locations are supported.
Since:
3.1.7
Author:
Peter Hollemans
  • Constructor Details

    • LineLocationIterator

      public LineLocationIterator(DataLocation start, DataLocation end)
      Creates a new line location iterator. The starting and ending locations are rounded to the nearest integer coordinates prior to deriving the line data locations.
      Parameters:
      start - the starting data location.
      end - the ending data location.
  • Method Details