Class 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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private float radius
      radius
      private float x
      Center x
      private float y
      Center y
    • Constructor Summary

      Constructors 
      Constructor Description
      XYCircle​(float x, float y, float radius)
      Creates a new circle from the supplied x/y center and radius.
    • Field Detail

      • x

        private final float x
        Center x
      • y

        private final float y
        Center y
      • radius

        private final float radius
        radius
    • 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
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object