geometry
public class EarthCenterCoordinate extends Coordinate
This class defines the coordinate with its origin located at
center of the earth. The z axis points to the North Pole
and the y axis points to longitude 0 degree latitude 0 degree.
| Modifier and Type | Field and Description |
|---|---|
static double |
REarth
Radius of the earth [cm]
|
| Constructor and Description |
|---|
EarthCenterCoordinate()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getLatitude(J3Vector r)
Calculate latitude in degree.
|
double |
getLongitude(J3Vector r)
Calculate longitude in degree.
|
J3Vector |
getPointVectorFromLongitudeLatitude(double height,
double longitude,
double latitude)
Get the point vector in this earth-center coordinate
for a given longitude [deg] and latitude [deg].
|
J3Vector |
getSurfacePoint(double longitude,
double latitude)
Get the point vector on the earth surface.
|
static boolean |
IsInsideEarth(J3Vector r)
Check if the point is inside the earth.
|
getAzimuthInPolar, getEx, getEy, getEz, getLengthInPolar, getOrigin, getPointVectorFromPolarCoordinate, getZenithInPolar, rotate, setOrigin, transformThisCoordinate, transformUnitVectorToThisCoordinate, transformVectorToThisCoordinatepublic static final double REarth
public double getLongitude(J3Vector r)
public double getLatitude(J3Vector r)
public J3Vector getPointVectorFromLongitudeLatitude(double height, double longitude, double latitude)
double height : height [cm] from the earth center
double longitude : longitude [deg]
double latitude : latitude [deg]
Returns J3Vector defined in the EarthCenterCoordinatepublic J3Vector getSurfacePoint(double longitude, double latitude)
public static boolean IsInsideEarth(J3Vector r)