Is it possible to compute distance with EllipsoidGeodesic or EllipsoidRhumbLine with a height, not surfaceDistance?

Is it possible to compute distance with EllipsoidGeodesic or EllipsoidRhumbLine with a height, not surfaceDistance?

I mean, height will not be ignored, start and end point can have a unequal height.