public class SphericalCosineEarthModel extends AbstractEarthModel
Modifier and Type | Class and Description |
---|---|
static class |
SphericalCosineEarthModel.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static double |
EARTH_RADIUS
Earth radius approximation in m.
|
static SphericalCosineEarthModel |
STATIC
Spherical earth model, static instance.
|
a, b, e, esq, f, invf
MODEL_ID
Modifier | Constructor and Description |
---|---|
protected |
SphericalCosineEarthModel()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
distanceRad(double lat1,
double lng1,
double lat2,
double lng2)
Compute the geodetic distance between two surface coordinates.
|
double |
ecefToLatRad(double x,
double y,
double z)
Convert a 3D coordinate pair to the corresponding latitude.
|
double[] |
latLngRadToECEF(double lat,
double lng)
Map a radians latitude, longitude pair to 3D X-Y-Z coordinates, using a
spherical earth model.
|
double[] |
latLngRadToECEF(double lat,
double lng,
double h)
Map a radians latitude, longitude pair to 3D X-Y-Z coordinates, using a
spherical earth model.
|
distanceDeg, ecefToLatDeg, ecefToLatLngDegHeight, ecefToLatLngRadHeight, ecefToLngDeg, ecefToLngRad, getEquatorialRadius, getPolarDistance, latLngDegToECEF, latLngDegToECEF, minDistDeg, minDistRad, toString
public static final SphericalCosineEarthModel STATIC
public static final double EARTH_RADIUS
public double[] latLngRadToECEF(double lat, double lng)
EarthModel
latLngRadToECEF
in interface EarthModel
latLngRadToECEF
in class AbstractEarthModel
lat
- Latitude in radianslng
- Longitude in radianspublic double[] latLngRadToECEF(double lat, double lng, double h)
EarthModel
latLngRadToECEF
in interface EarthModel
latLngRadToECEF
in class AbstractEarthModel
lat
- Latitude in radianslng
- Longitude in radiansh
- Heightpublic double ecefToLatRad(double x, double y, double z)
EarthModel
ecefToLatRad
in interface EarthModel
ecefToLatRad
in class AbstractEarthModel
x
- X valuey
- Y valuez
- Z valuepublic double distanceRad(double lat1, double lng1, double lat2, double lng2)
EarthModel
distanceRad
in interface EarthModel
distanceRad
in class AbstractEarthModel
lat1
- Latitude of first in radians.lng1
- Longitude of first in radians.lat2
- Latitude of second in radians.lng2
- Longitude of second in radians.