prg_geo_geoxyz_to_lat_long_alt()
Abstract
Converts a 3-D position from geocentric to geodetic coordinates.
Syntax
prg_geo_geoxyz_to_lat_long_alt (x, y, z, lat_ptr, lon_ptr, alt_ptr)
| Argument | Type | Description |
|---|---|---|
x |
double |
X coordinate, in meters. |
y |
double |
Y coordinate, in meters. |
z |
double |
Z coordinate, in meters. |
lat_ptr |
double * |
Pointer to latitude. |
lon_ptr |
double * |
Pointer to longitude. |
alt_ptr |
double * |
Pointer to altitude. |
Return Type
void
No return value.
Header
prg_geo.h
Details
X, y, and z are measured from the center of the earth, in the coordinate system specified by the “geocentric_model“ preference (right sphere, left sphere, or ellipsoid).
Latitude and longitude are returned in degrees. Altitude is in meters above the earth's surface (using the current geocentric model).