I have an ellipsoid representing the Earth (WGS84) and the current location of a spacecraft (somewhere above the surface). I am trying to find a method that allows me to calculate the straight line distance from the point to the surface of the ellipsoid.
Any help would be appreciated...