public class Coordinate extends Object
Constructor and Description |
---|
Coordinate(double lon,
double lat)
Create a new Coordinate.
|
Modifier and Type | Method and Description |
---|---|
double |
getLatitude() |
double |
getLongitude() |
static Coordinate |
mean(Collection<Coordinate> coords)
Calculate the mean of this collection of coordinates.
|
String |
toString() |
public Coordinate(double lon, double lat)
lon
- the longitude.lat
- the latitude.public double getLongitude()
public double getLatitude()
public static Coordinate mean(Collection<Coordinate> coords)
coords
- a collection of coordinates.