Package org.eclipse.mosaic.lib.geo
Interface GeoPoint
- All Superinterfaces:
Point<GeoPoint>
,Serializable
- All Known Implementing Classes:
MutableGeoPoint
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
static GeoPoint
latLon
(double latitude, double longitude) Creates aMutableGeoPoint
from latitude and longitude.static GeoPoint
latLon
(double latitude, double longitude, double altitude) Creates aMutableGeoPoint
from latitude and longitude.static GeoPoint
lonLat
(double longitude, double latitude) Creates aMutableGeoPoint
from latitude and longitude.static GeoPoint
lonLat
(double longitude, double latitude, double altitude) Creates aMutableGeoPoint
from latitude and longitude.toUtm()
Methods inherited from interface org.eclipse.mosaic.lib.geo.Point
distanceTo, toVector3d, toVector3d
-
Field Details
-
ORIGO
-
-
Method Details
-
getLatitude
double getLatitude() -
getLongitude
double getLongitude() -
getAltitude
double getAltitude() -
toCartesian
CartesianPoint toCartesian() -
toUtm
UtmPoint toUtm() -
latLon
Creates aMutableGeoPoint
from latitude and longitude.- Parameters:
latitude
- the latitudelongitude
- the longitude- Returns:
- a GeoPoint
- Throws:
IllegalArgumentException
- if a coordinate is invalid orDouble.NaN
.
-
latLon
Creates aMutableGeoPoint
from latitude and longitude.- Parameters:
latitude
- the latitudelongitude
- the longitudealtitude
- the altitude in [m]- Returns:
- a GeoPoint
- Throws:
IllegalArgumentException
- if a coordinate is invalid orDouble.NaN
.
-
lonLat
Creates aMutableGeoPoint
from latitude and longitude.- Parameters:
longitude
- the longitudelatitude
- the latitude- Returns:
- a GeoPoint
- Throws:
IllegalArgumentException
- if a coordinate is invalid orDouble.NaN
.
-
lonLat
Creates aMutableGeoPoint
from latitude and longitude.- Parameters:
longitude
- the longitudelatitude
- the latitudealtitude
- the altitude in [m]- Returns:
- a GeoPoint
- Throws:
IllegalArgumentException
- if a coordinate is invalid orDouble.NaN
.
-