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 |
maximum(Collection
Calculate a new coordinate that has the maximum in both dimensions.
|
static Coordinate |
mean(Collection
Calculate the mean of this collection of coordinates.
|
static Coordinate |
minimum(Collection
Calculate a new coordinate that has the minimum in both dimensions.
|
String |
toString()
|
public Coordinate(double lon,
double lat)
lon - the longitude.
lat - the latitude.
public double getLongitude()
public double getLatitude()
public StringtoString()
public static Coordinatemean(Collection <Coordinate > coords)
coords - a collection of coordinates.
public static Coordinateminimum(Collection <Coordinate > coords)
coords - a collection of coordinates.
public static Coordinatemaximum(Collection <Coordinate > coords)
coords - a collection of coordinates.