P
- Point implementation typeN
- Node implementation typepublic interface BSPSubtree<P extends Point<P>,N extends BSPTree.Node<P,N>>
BSPTree
Modifier and Type | Method and Description |
---|---|
void |
accept(BSPTreeVisitor<P,N> visitor)
Accept a visitor instance, calling it with each node from the subtree.
|
int |
count()
Return the total number of nodes in the subtree.
|
int |
height()
The height of the subtree, ie the length of the longest downward path from
the subtree root to a leaf node.
|
Iterable<N> |
nodes()
Get an iterable for accessing the nodes in this subtree.
|
int count()
int height()
void accept(BSPTreeVisitor<P,N> visitor)
visitor
- visitor called with each subtree nodeIterable<N> nodes()
accept(BSPTreeVisitor)
for accessing tree nodes but is not
as powerful or flexible since the node iteration order is fixed.Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.