This function converts geodetic coordinates into cartesian tridimensional
geocentric coordinates.
INPUT ARGUMENTS:
- lon is a column vector containing the geodetic longitude, in radians.
- lat is a column vector containing the geodetic latitude, in radians.
- h is a column vector containing the ellipsoidal height, in meters.
- a is a scalar containing the semi-major axis of the ellipsoid, in
meters.
- e2 is a scalar containing the squared first eccentricity of the
ellipsoid.
OUTPUT ARGUMENTS:
- X is a column vector containing the X geocentric coordinate, in meters.
- Y is a column vector containing the Y geocentric coordinate, in meters.
- Z is a column vector containing the Z geocentric coordinate, in meters.
The coordinate vectors lon, lat and h can be scalars,
vectors or 2D matrices. X, Y, and Z will be according to
the input dimensions.
See also: _op_geoc2geod.