Figure 2:
Relation between 3D Cartesian geocentric position and geodetic height.