Class ArcsSet.SubArcsIterator

java.lang.Object
org.apache.commons.math3.geometry.spherical.oned.ArcsSet.SubArcsIterator
All Implemented Interfaces:
Iterator<double[]>
Enclosing class:
ArcsSet

private class ArcsSet.SubArcsIterator extends Object implements Iterator<double[]>
Local iterator for sub-arcs.
  • Field Details

    • firstStart

      private final BSPTree<Sphere1D> firstStart
      Start of the first arc.
    • current

      private BSPTree<Sphere1D> current
      Current node.
    • pending

      private double[] pending
      Sub-arc no yet returned.
  • Constructor Details

    • SubArcsIterator

      SubArcsIterator()
      Simple constructor.
  • Method Details

    • selectPending

      private void selectPending()
      Walk the tree to select the pending sub-arc.
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<double[]>
    • next

      public double[] next()
      Specified by:
      next in interface Iterator<double[]>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<double[]>