Class RegionBSPTree2D.RegionNode2D
java.lang.Object
org.apache.commons.geometry.core.partitioning.bsp.AbstractBSPTree.AbstractNode<Vector2D, RegionBSPTree2D.RegionNode2D>
org.apache.commons.geometry.core.partitioning.bsp.AbstractRegionBSPTree.AbstractRegionNode<Vector2D, RegionBSPTree2D.RegionNode2D>
org.apache.commons.geometry.euclidean.twod.RegionBSPTree2D.RegionNode2D
- All Implemented Interfaces:
BSPSubtree<Vector2D, RegionBSPTree2D.RegionNode2D>, BSPTree.Node<Vector2D, RegionBSPTree2D.RegionNode2D>
- Enclosing class:
RegionBSPTree2D
public static final class RegionBSPTree2D.RegionNode2D
extends AbstractRegionBSPTree.AbstractRegionNode<Vector2D, RegionBSPTree2D.RegionNode2D>
BSP tree node for two dimensional Euclidean space.
-
Method Summary
Modifier and TypeMethodDescriptionGet the region represented by this node.protected RegionBSPTree2D.RegionNode2DgetSelf()Get a reference to the current instance, cast to type N.Methods inherited from class AbstractRegionBSPTree.AbstractRegionNode
clearCut, cut, cut, getCutBoundary, getLocation, getTree, insertCut, insertCut, isInside, isOutside, nodeInvalidated, setLocation, setLocationValue, toStringMethods inherited from class AbstractBSPTree.AbstractNode
accept, checkValid, count, depth, getCut, getCutHyperplane, getMinus, getParent, getPlus, height, isInternal, isLeaf, isMinus, isPlus, makeRoot, nodes, setSubtree, trim
-
Method Details
-
getNodeRegion
Get the region represented by this node. The returned region contains the entire area contained in this node, regardless of the attributes of any child nodes.- Returns:
- the region represented by this node
-
getSelf
Get a reference to the current instance, cast to type N.- Specified by:
getSelfin classAbstractBSPTree.AbstractNode<Vector2D, RegionBSPTree2D.RegionNode2D>- Returns:
- a reference to the current instance, as type N.
-