Class GeoUniq.CircularArea

java.lang.Object
com.geouniq.android.GeoUniq.CircularArea
Enclosing class:
GeoUniq

public static class GeoUniq.CircularArea extends Object
Models a circular area on the Earth's surface.
  • Constructor Details

    • CircularArea

      public CircularArea(String name, GeoUniq.GeoPoint center, double radius)
      Constructor sets the provided name, center, and radius to this CircularArea
      Parameters:
      name - an optional name to associate to this CircularArea
      center - the center of the CircularArea
      radius - the raius of the CircularArea
      Throws:
      IllegalArgumentException - if center is null or radius is lower than or equal to zero
  • Method Details

    • toString

      @NonNull public String toString()
      Overrides:
      toString in class Object
    • getName

      public String getName()
      Returns:
      the name of this CircularArea
    • getRadius

      public double getRadius()
      Returns:
      the radius of this CircularArea
    • getCenter

      public GeoUniq.GeoPoint getCenter()
      Returns:
      the center of this CircularArea