java.lang.Object
org.apache.lucene.geo.Geometry
org.apache.lucene.geo.XYGeometry
org.apache.lucene.geo.XYCircle
Represents a circle on the XY plane.
NOTES:
- X/Y precision is float.
- Radius precision is float.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXYCircle
(float x, float y, float radius) Creates a new circle from the supplied x/y center and radius. -
Method Summary
Modifier and TypeMethodDescriptionboolean
float
Returns the radiusfloat
getX()
Returns the center's xfloat
getY()
Returns the center's yint
hashCode()
protected Component2D
get a Component2D from the geometry objecttoString()
Methods inherited from class org.apache.lucene.geo.XYGeometry
create
-
Field Details
-
x
private final float xCenter x -
y
private final float yCenter y -
radius
private final float radiusradius
-
-
Constructor Details
-
XYCircle
public XYCircle(float x, float y, float radius) Creates a new circle from the supplied x/y center and radius.
-
-
Method Details
-
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
Description copied from class:Geometry
get a Component2D from the geometry object- Specified by:
toComponent2D
in classGeometry
-
equals
-
hashCode
public int hashCode() -
toString
-