Package org.apache.lucene.geo
Class XYRectangle
- java.lang.Object
-
- org.apache.lucene.geo.XYGeometry
-
- org.apache.lucene.geo.XYRectangle
-
public final class XYRectangle extends XYGeometry
Represents a x/y cartesian rectangle.
-
-
Constructor Summary
Constructors Constructor Description XYRectangle(float minX, float maxX, float minY, float maxY)Constructs a bounding box by first validating the provided x and y coordinates
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static XYRectanglefromPointDistance(float x, float y, float radius)Compute Bounding Box for a circle in cartesian geometryinthashCode()protected Component2DtoComponent2D()get a Component2D from this objectjava.lang.StringtoString()-
Methods inherited from class org.apache.lucene.geo.XYGeometry
create
-
-
-
-
Method Detail
-
toComponent2D
protected Component2D toComponent2D()
Description copied from class:XYGeometryget a Component2D from this object- Specified by:
toComponent2Din classXYGeometry
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
fromPointDistance
public static XYRectangle fromPointDistance(float x, float y, float radius)
Compute Bounding Box for a circle in cartesian geometry
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-