Package org.apache.lucene.spatial3d.geom
Class GeoConvexPolygon.EitherBound
java.lang.Object
org.apache.lucene.spatial3d.geom.GeoConvexPolygon.EitherBound
- All Implemented Interfaces:
Membership
- Enclosing class:
- GeoConvexPolygon
A membership implementation representing polygon edges that must apply.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
sideBound1
-
sideBound2
-
-
Constructor Details
-
EitherBound
Constructor.- Parameters:
sideBound1
- is the first side bound.sideBound2
- is the second side bound.
-
-
Method Details
-
isWithin
Description copied from interface:Membership
Check if a point is within this shape.- Specified by:
isWithin
in interfaceMembership
- Parameters:
v
- is the point to check.- Returns:
- true if the point is within this shape
-
isWithin
public boolean isWithin(double x, double y, double z) Description copied from interface:Membership
Check if a point is within this shape.- Specified by:
isWithin
in interfaceMembership
- Parameters:
x
- is x coordinate of point to check.y
- is y coordinate of point to check.z
- is z coordinate of point to check.- Returns:
- true if the point is within this shape
-
toString
-