Package org.apache.lucene.geo
Class XYCircle
- java.lang.Object
-
- org.apache.lucene.geo.XYGeometry
-
- org.apache.lucene.geo.XYCircle
-
public final class XYCircle extends XYGeometry
Represents a circle on the XY plane.NOTES:
- X/Y precision is float.
- Radius precision is float.
-
-
Constructor Summary
Constructors Constructor Description XYCircle(float x, float y, float radius)
Creates a new circle from the supplied x/y center and radius.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
float
getRadius()
Returns the radiusfloat
getX()
Returns the center's xfloat
getY()
Returns the center's yint
hashCode()
protected Component2D
toComponent2D()
get a Component2D from this objectjava.lang.String
toString()
-
Methods inherited from class org.apache.lucene.geo.XYGeometry
create
-
-
-
-
Method Detail
-
getX
public float getX()
Returns the center's x
-
getY
public float getY()
Returns the center's y
-
getRadius
public float getRadius()
Returns the radius
-
toComponent2D
protected Component2D toComponent2D()
Description copied from class:XYGeometry
get a Component2D from this object- Specified by:
toComponent2D
in classXYGeometry
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-