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 OrientedPointmaxThe max boundary for the region.private OrientedPointminThe min boundary for the region.
-
Constructor Summary
Constructors Modifier Constructor Description privateNodeRegionVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(OrientedPoint minBoundary, OrientedPoint maxBoundary)IntervalgetInterval()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:
acceptin interfacejava.util.function.BiConsumer<OrientedPoint,OrientedPoint>
-
getInterval
public Interval getInterval()
Return the computed interval.- Returns:
- the computed interval.
-
-