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 Plane
firstLegAbovePlane
private Plane
firstLegBelowPlane
private Plane
firstLegPlane
private GeoComplexPolygon.Tree
firstLegTree
private double
firstLegValue
private GeoPoint
intersectionPoint
private Plane
secondLegAbovePlane
private Plane
secondLegBelowPlane
private Plane
secondLegPlane
private GeoComplexPolygon.Tree
secondLegTree
private double
secondLegValue
private double
traversalDistance
-
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 boolean
apply(GeoPoint testPoint, boolean testPointInSet, double x, double y, double z)
int
compareTo(GeoComplexPolygon.TraversalStrategy other)
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(GeoComplexPolygon.TraversalStrategy other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<GeoComplexPolygon.TraversalStrategy>
-
-