Package org.apache.lucene.geo
Class XYRectangle
java.lang.Object
org.apache.lucene.geo.XYGeometry
org.apache.lucene.geo.XYRectangle
Represents a x/y cartesian rectangle.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionXYRectangle
(float minX, float maxX, float minY, float maxY) Constructs a bounding box by first validating the provided x and y coordinates -
Method Summary
Modifier and TypeMethodDescriptionboolean
static XYRectangle
fromPointDistance
(float x, float y, float radius) Compute Bounding Box for a circle in cartesian geometryint
hashCode()
protected Component2D
get a Component2D from this objecttoString()
Methods inherited from class org.apache.lucene.geo.XYGeometry
create
-
Field Details
-
minX
public final float minXminimum x value -
maxX
public final float maxXminimum y value -
minY
public final float minYmaximum x value -
maxY
public final float maxYmaximum y value
-
-
Constructor Details
-
XYRectangle
public XYRectangle(float minX, float maxX, float minY, float maxY) Constructs a bounding box by first validating the provided x and y coordinates
-
-
Method Details
-
toComponent2D
Description copied from class:XYGeometry
get a Component2D from this object- Specified by:
toComponent2D
in classXYGeometry
-
equals
-
fromPointDistance
Compute Bounding Box for a circle in cartesian geometry -
hashCode
public int hashCode() -
toString
-