Class GridOfPoints.PositionIterator

  • All Implemented Interfaces:
    java.util.Iterator<Position>
    Enclosing class:
    GridOfPoints

    protected static class GridOfPoints.PositionIterator
    extends java.lang.Object
    implements java.util.Iterator<Position>
    Generates positions forming a lat/lon grid.
    • Field Detail

      • numWide

        protected int numWide
      • numHigh

        protected int numHigh
      • w

        protected int w
      • h

        protected int h
      • corners

        protected java.util.List<Position> corners
    • Constructor Detail

      • PositionIterator

        public PositionIterator​(java.util.List<Position> corners,
                                int numPointsWide,
                                int numPointsHigh)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<Position>
      • next

        public Position next()
        Specified by:
        next in interface java.util.Iterator<Position>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<Position>
      • computeNextPosition

        protected Position computeNextPosition()