Class RegionBSPTree3D.BoundaryProjector3D
java.lang.Object
org.apache.commons.geometry.core.partitioning.bsp.BSPTreeVisitor.TargetPointVisitor<Vector3D, RegionBSPTree3D.RegionNode3D>
org.apache.commons.geometry.core.partitioning.bsp.BSPTreeVisitor.ClosestFirstVisitor<Vector3D, RegionBSPTree3D.RegionNode3D>
org.apache.commons.geometry.core.partitioning.bsp.AbstractRegionBSPTree.BoundaryProjector<Vector3D, RegionBSPTree3D.RegionNode3D>
org.apache.commons.geometry.euclidean.threed.RegionBSPTree3D.BoundaryProjector3D
- All Implemented Interfaces:
BSPTreeVisitor<Vector3D, RegionBSPTree3D.RegionNode3D>
- Enclosing class:
RegionBSPTree3D
private static final class RegionBSPTree3D.BoundaryProjector3D
extends AbstractRegionBSPTree.BoundaryProjector<Vector3D, RegionBSPTree3D.RegionNode3D>
Class used to project points onto the 3D region boundary.
-
Nested Class Summary
Nested classes/interfaces inherited from interface BSPTreeVisitor
BSPTreeVisitor.ClosestFirstVisitor<P,N>, BSPTreeVisitor.FarthestFirstVisitor<P, N>, BSPTreeVisitor.Order, BSPTreeVisitor.Result, BSPTreeVisitor.TargetPointVisitor<P, N> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Vector3DdisambiguateClosestPoint(Vector3D target, Vector3D a, Vector3D b) Method used to determine which of pointsaandbshould be considered as the "closest" point totargetwhen the points are exactly equidistant.Methods inherited from class AbstractRegionBSPTree.BoundaryProjector
getProjected, isPossibleClosestCut, visitMethods inherited from class BSPTreeVisitor.ClosestFirstVisitor
visitOrderMethods inherited from class BSPTreeVisitor.TargetPointVisitor
getTarget
-
Constructor Details
-
BoundaryProjector3D
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<Vector3D, RegionBSPTree3D.RegionNode3D>- Parameters:
target- the target pointa- first point to considerb- second point to consider- Returns:
- which of
aorbshould be considered as the one closest totarget
-