Class Circle

  • All Implemented Interfaces:
    android.os.Parcelable

    public class Circle
    extends Object
    implements android.os.Parcelable
    A circle with center and radius
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<Circle> CREATOR
    • Constructor Detail

      • Circle

        public Circle​(Point center,
                      float radius)
    • Method Detail

      • getCenter

        public Point getCenter()
        The center of the circle
      • getRadius

        public float getRadius()
        The radius of the circle (in meters)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable