Package org.apache.lucene.spatial3d.geom
Class GeoComplexPolygon.TraversalStrategy
- java.lang.Object
-
- org.apache.lucene.spatial3d.geom.GeoComplexPolygon.TraversalStrategy
-
- All Implemented Interfaces:
java.lang.Comparable<GeoComplexPolygon.TraversalStrategy>
- Enclosing class:
- GeoComplexPolygon
private class GeoComplexPolygon.TraversalStrategy extends java.lang.Object implements java.lang.Comparable<GeoComplexPolygon.TraversalStrategy>
Strategy class for describing traversals. Implements Comparable so that these can be ordered by Collections.sort().
-
-
Field Summary
Fields Modifier and Type Field Description private PlanefirstLegAbovePlaneprivate PlanefirstLegBelowPlaneprivate PlanefirstLegPlaneprivate GeoComplexPolygon.TreefirstLegTreeprivate doublefirstLegValueprivate GeoPointintersectionPointprivate PlanesecondLegAbovePlaneprivate PlanesecondLegBelowPlaneprivate PlanesecondLegPlaneprivate GeoComplexPolygon.TreesecondLegTreeprivate doublesecondLegValueprivate doubletraversalDistance
-
Constructor Summary
Constructors Constructor Description TraversalStrategy(double traversalDistance, double firstLegValue, double secondLegValue, Plane firstLegPlane, Plane firstLegAbovePlane, Plane firstLegBelowPlane, Plane secondLegPlane, Plane secondLegAbovePlane, Plane secondLegBelowPlane, GeoComplexPolygon.Tree firstLegTree, GeoComplexPolygon.Tree secondLegTree, GeoPoint intersectionPoint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapply(GeoPoint testPoint, boolean testPointInSet, double x, double y, double z)intcompareTo(GeoComplexPolygon.TraversalStrategy other)java.lang.StringtoString()
-
-
-
Field Detail
-
traversalDistance
private final double traversalDistance
-
firstLegValue
private final double firstLegValue
-
secondLegValue
private final double secondLegValue
-
firstLegPlane
private final Plane firstLegPlane
-
firstLegAbovePlane
private final Plane firstLegAbovePlane
-
firstLegBelowPlane
private final Plane firstLegBelowPlane
-
secondLegPlane
private final Plane secondLegPlane
-
secondLegAbovePlane
private final Plane secondLegAbovePlane
-
secondLegBelowPlane
private final Plane secondLegBelowPlane
-
firstLegTree
private final GeoComplexPolygon.Tree firstLegTree
-
secondLegTree
private final GeoComplexPolygon.Tree secondLegTree
-
intersectionPoint
private final GeoPoint intersectionPoint
-
-
Constructor Detail
-
TraversalStrategy
public TraversalStrategy(double traversalDistance, double firstLegValue, double secondLegValue, Plane firstLegPlane, Plane firstLegAbovePlane, Plane firstLegBelowPlane, Plane secondLegPlane, Plane secondLegAbovePlane, Plane secondLegBelowPlane, GeoComplexPolygon.Tree firstLegTree, GeoComplexPolygon.Tree secondLegTree, GeoPoint intersectionPoint)
-
-
Method Detail
-
apply
public boolean apply(GeoPoint testPoint, boolean testPointInSet, double x, double y, double z)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(GeoComplexPolygon.TraversalStrategy other)
- Specified by:
compareToin interfacejava.lang.Comparable<GeoComplexPolygon.TraversalStrategy>
-
-