This function converts cartesian tridimensional geodentric coordinates into geodetic coordinates.
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. 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 X, Y and Z must be all scalars or all column vectors (of the same size).
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
See also: _op_geod2geoc.
Package: octproj