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:

  1. X/Y precision is float.
  2. Radius precision is float.
  WARNING: This API is experimental and might change in incompatible ways in the next release.

- - ### Constructor Summary

    Constructors
    Constructor and 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 and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `float` | `getRadius()` Returns the radius
    `float` | `getX()` Returns the center's x
    `float` | `getY()` Returns the center's y
    `int` | `hashCode()`
    `protected Component2D` | `toComponent2D()` get a Component2D from this object
    `String` | `toString()`

    - ### Methods inherited from class org.apache.lucene.geo.XYGeometry

      `create`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### XYCircle

          public XYCircle(float x,
                          float y,
                          float radius)

      Creates a new circle from the supplied x/y center and radius.

  - ### 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 class `XYGeometry`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.