public class GeoLocation extends Object
A 3D geographic location. This class is immutable.
Constructor and Description |
---|
GeoLocation(double latitude,
double longitude,
double altitude)
Creates a
GeoLocation |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
double |
getAltitude()
The altitude above/below sea-level in meters
|
double |
getLatitude()
The latitude in radians
|
double |
getLongitude()
The longitude in radians
|
int |
hashCode() |
String |
toString() |
public GeoLocation(double latitude, double longitude, double altitude)
Creates a GeoLocation
latitude
- the latitude in radianslongitude
- the longitude in radiansaltitude
- the altitude above/below sea-level in meters