Class RegionBSPTree1D.NodeRegionVisitor
- java.lang.Object
-
- org.apache.commons.geometry.euclidean.oned.RegionBSPTree1D.NodeRegionVisitor
-
- All Implemented Interfaces:
java.util.function.BiConsumer<OrientedPoint,OrientedPoint>
- Enclosing class:
- RegionBSPTree1D
private static final class RegionBSPTree1D.NodeRegionVisitor extends java.lang.Object implements java.util.function.BiConsumer<OrientedPoint,OrientedPoint>
Internal class for calculating the region of a single tree node.
-
-
Field Summary
Fields Modifier and Type Field Description private OrientedPoint
max
The max boundary for the region.private OrientedPoint
min
The min boundary for the region.
-
Constructor Summary
Constructors Modifier Constructor Description private
NodeRegionVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(OrientedPoint minBoundary, OrientedPoint maxBoundary)
Interval
getInterval()
Return the computed interval.
-
-
-
Field Detail
-
min
private OrientedPoint min
The min boundary for the region.
-
max
private OrientedPoint max
The max boundary for the region.
-
-
Method Detail
-
accept
public void accept(OrientedPoint minBoundary, OrientedPoint maxBoundary)
- Specified by:
accept
in interfacejava.util.function.BiConsumer<OrientedPoint,OrientedPoint>
-
getInterval
public Interval getInterval()
Return the computed interval.- Returns:
- the computed interval.
-
-