This function converts geodetic coordinates into cartesian tridimensional geocentric coordinates.
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.
The coordinate vectors lon, lat and h must be all scalars or all column vectors (of the same size).
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.
See also: _op_geoc2geod.
Package: octproj