Class RegionBSPTree2S.BoundaryProjector2S
java.lang.Object
org.apache.commons.geometry.core.partitioning.bsp.BSPTreeVisitor.TargetPointVisitor<Point2S,RegionBSPTree2S.RegionNode2S>
org.apache.commons.geometry.core.partitioning.bsp.BSPTreeVisitor.ClosestFirstVisitor<Point2S,RegionBSPTree2S.RegionNode2S>
org.apache.commons.geometry.core.partitioning.bsp.AbstractRegionBSPTree.BoundaryProjector<Point2S,RegionBSPTree2S.RegionNode2S>
org.apache.commons.geometry.spherical.twod.RegionBSPTree2S.BoundaryProjector2S
- All Implemented Interfaces:
BSPTreeVisitor<Point2S,
RegionBSPTree2S.RegionNode2S>
- Enclosing class:
RegionBSPTree2S
private static final class RegionBSPTree2S.BoundaryProjector2S
extends AbstractRegionBSPTree.BoundaryProjector<Point2S,RegionBSPTree2S.RegionNode2S>
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 Point2S
disambiguateClosestPoint
(Point2S target, Point2S a, Point2S b) Method used to determine which of pointsa
andb
should be considered as the "closest" point totarget
when the points are exactly equidistant.Methods inherited from class org.apache.commons.geometry.core.partitioning.bsp.AbstractRegionBSPTree.BoundaryProjector
getProjected, isPossibleClosestCut, visit
Methods inherited from class org.apache.commons.geometry.core.partitioning.bsp.BSPTreeVisitor.ClosestFirstVisitor
visitOrder
Methods inherited from class org.apache.commons.geometry.core.partitioning.bsp.BSPTreeVisitor.TargetPointVisitor
getTarget
-
Constructor Details
-
BoundaryProjector2S
BoundaryProjector2S(Point2S point) Simple constructor.- Parameters:
point
- the point to project onto the region's boundary
-
-
Method Details
-
disambiguateClosestPoint
Method used to determine which of pointsa
andb
should be considered as the "closest" point totarget
when the points are exactly equidistant.- Overrides:
disambiguateClosestPoint
in classAbstractRegionBSPTree.BoundaryProjector<Point2S,
RegionBSPTree2S.RegionNode2S> - Parameters:
target
- the target pointa
- first point to considerb
- second point to consider- Returns:
- which of
a
orb
should be considered as the one closest totarget
-