Package org.apache.lucene.geo
Class XYCircle
- java.lang.Object
-
- org.apache.lucene.geo.Geometry
-
- 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.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
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 booleanequals(Object o)floatgetRadius()Returns the radiusfloatgetX()Returns the center's xfloatgetY()Returns the center's yinthashCode()protected Component2DtoComponent2D()get a Component2D from the geometry objectStringtoString()-
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:Geometryget a Component2D from the geometry object- Specified by:
toComponent2Din classGeometry
-
-