Package com.geouniq.android
Class GeoUniq.CircularArea
- java.lang.Object
-
- com.geouniq.android.GeoUniq.CircularArea
-
- Enclosing class:
- GeoUniq
public static class GeoUniq.CircularArea extends java.lang.ObjectModels a circular area on the Earth's surface.
-
-
Constructor Summary
Constructors Constructor Description CircularArea(java.lang.String name, GeoUniq.GeoPoint center, double radius)Constructor sets the provided name, center, and radius to thisCircularArea
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoUniq.GeoPointgetCenter()java.lang.StringgetName()doublegetRadius()java.lang.StringtoString()
-
-
-
Constructor Detail
-
CircularArea
public CircularArea(java.lang.String name, GeoUniq.GeoPoint center, double radius)Constructor sets the provided name, center, and radius to thisCircularArea- Parameters:
name- an optional name to associate to thisCircularAreacenter- the center of theCircularArearadius- the raius of theCircularArea- Throws:
java.lang.IllegalArgumentException- if center is null or radius is lower than or equal to zero
-
-
Method Detail
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getName
public java.lang.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
-
-