Class NodesSet<S extends Space>

java.lang.Object
org.hipparchus.geometry.partitioning.NodesSet<S>
Type Parameters:
S - Type of the space.
All Implemented Interfaces:
Iterable<BSPTree<S>>

public class NodesSet<S extends Space> extends Object implements Iterable<BSPTree<S>>
Set of BSP tree nodes.
See Also:
  • Constructor Details

    • NodesSet

      public NodesSet()
      Simple constructor.
  • Method Details

    • add

      public void add(BSPTree<S> node)
      Add a node if not already known.
      Parameters:
      node - node to add
    • addAll

      public void addAll(Iterable<BSPTree<S>> iterator)
      Add nodes if they are not already known.
      Parameters:
      iterator - nodes iterator
    • iterator

      public Iterator<BSPTree<S>> iterator()
      Specified by:
      iterator in interface Iterable<S extends Space>