Class RegionBSPTree1D.BoundaryProjector1D
java.lang.Object
org.apache.commons.geometry.core.partitioning.bsp.BSPTreeVisitor.TargetPointVisitor<Vector1D,RegionBSPTree1D.RegionNode1D>
org.apache.commons.geometry.core.partitioning.bsp.BSPTreeVisitor.ClosestFirstVisitor<Vector1D,RegionBSPTree1D.RegionNode1D>
org.apache.commons.geometry.core.partitioning.bsp.AbstractRegionBSPTree.BoundaryProjector<Vector1D,RegionBSPTree1D.RegionNode1D>
org.apache.commons.geometry.euclidean.oned.RegionBSPTree1D.BoundaryProjector1D
- All Implemented Interfaces:
BSPTreeVisitor<Vector1D,RegionBSPTree1D.RegionNode1D>
- Enclosing class:
RegionBSPTree1D
private static final class RegionBSPTree1D.BoundaryProjector1D
extends AbstractRegionBSPTree.BoundaryProjector<Vector1D,RegionBSPTree1D.RegionNode1D>
Class used to project points onto the region boundary.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.commons.geometry.core.partitioning.bsp.BSPTreeVisitor
BSPTreeVisitor.ClosestFirstVisitor<P extends Point<P>,N extends BSPTree.Node<P, N>>, BSPTreeVisitor.FarthestFirstVisitor<P extends Point<P>, N extends BSPTree.Node<P, N>>, BSPTreeVisitor.Order, BSPTreeVisitor.Result, BSPTreeVisitor.TargetPointVisitor<P extends Point<P>, N extends BSPTree.Node<P, N>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Vector1DdisambiguateClosestPoint(Vector1D target, Vector1D a, Vector1D b) Method used to determine which of pointsaandbshould be considered as the "closest" point totargetwhen the points are exactly equidistant.Methods inherited from class org.apache.commons.geometry.core.partitioning.bsp.AbstractRegionBSPTree.BoundaryProjector
getProjected, isPossibleClosestCut, visitMethods inherited from class org.apache.commons.geometry.core.partitioning.bsp.BSPTreeVisitor.ClosestFirstVisitor
visitOrderMethods inherited from class org.apache.commons.geometry.core.partitioning.bsp.BSPTreeVisitor.TargetPointVisitor
getTarget
-
Constructor Details
-
BoundaryProjector1D
BoundaryProjector1D(Vector1D point) Simple constructor.- Parameters:
point- the point to project onto the region's boundary
-
-
Method Details
-
disambiguateClosestPoint
Method used to determine which of pointsaandbshould be considered as the "closest" point totargetwhen the points are exactly equidistant.- Overrides:
disambiguateClosestPointin classAbstractRegionBSPTree.BoundaryProjector<Vector1D,RegionBSPTree1D.RegionNode1D> - Parameters:
target- the target pointa- first point to considerb- second point to consider- Returns:
- which of
aorbshould be considered as the one closest totarget
-