Package org.apache.lucene.spatial3d.geom
Class GeoConcavePolygon.EitherBound
- java.lang.Object
-
- org.apache.lucene.spatial3d.geom.GeoConcavePolygon.EitherBound
-
- All Implemented Interfaces:
Membership
- Enclosing class:
- GeoConcavePolygon
protected static class GeoConcavePolygon.EitherBound extends java.lang.Object implements Membership
A membership implementation representing polygon edges that must apply.
-
-
Field Summary
Fields Modifier and Type Field Description protected SidedPlane
sideBound1
protected SidedPlane
sideBound2
-
Constructor Summary
Constructors Constructor Description EitherBound(SidedPlane sideBound1, SidedPlane sideBound2)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isWithin(double x, double y, double z)
Check if a point is within this shape.boolean
isWithin(Vector v)
Check if a point is within this shape.java.lang.String
toString()
-
-
-
Field Detail
-
sideBound1
protected final SidedPlane sideBound1
-
sideBound2
protected final SidedPlane sideBound2
-
-
Constructor Detail
-
EitherBound
public EitherBound(SidedPlane sideBound1, SidedPlane sideBound2)
Constructor.- Parameters:
sideBound1
- is the first side bound.sideBound2
- is the second side bound.
-
-
Method Detail
-
isWithin
public boolean isWithin(Vector v)
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-