From: Els on
Unfortunately I can't read the C++ code either, but it looks rather promising. Actually it is exactly what I am looking for. If I just knew the algorithm behind it, I can make it work.
From: Mark Shore on
"Els " <y.e.t.reeuwijk(a)student.utwente.nl> wrote in message <hspcfn$nlm$1(a)fred.mathworks.com>...
> Unfortunately I can't read the C++ code either, but it looks rather promising. Actually it is exactly what I am looking for. If I just knew the algorithm behind it, I can make it work.

I may have been a little premature saying the documentation. There is a lot there, just not readily accessible.

Much is based on an 1826 paper by Bessel and recently translated from German as "The calculation of longitude and latitude from geodesic measurements". A preprint is available at http://arxiv.org/PS_cache/arxiv/pdf/0908/0908.1824v2.pdf

Additional material is from an 1880 German text on geodesy by F. R. Helmert, which - unsurprisingly - is not online.
From: Roger Stafford on
"Els " <y.e.t.reeuwijk(a)student.utwente.nl> wrote in message <hsp41n$28e$1(a)fred.mathworks.com>...
> I have two points on the surface of my ellipsoid. I calculated the distance between them with the Vincenty formula. But now I want to plot this distance on the ellipsoid distance as a line as well. For a sphere this is easy, but I do not know how to do it for an ellipsoid.
- - - - - - - - -
Correct me if I am wrong, but the impression I get is that Vincenty's formulae make the assumption that the ellipsoid in question is an oblate spheroid, meaning that two of its semi-axes are of equal length, since he was primarily interested in the earth considered as an ellipsoid and the geodesics thereupon. See: "Vincenty's formulae" at:

http://en.wikipedia.org/wiki/Vincenty's_formulae

Els, I believe you implied you wanted to deal with a general ellipsoid with all differing semi-axes when you said, "I am using a small ellipsoid, which does not look like the earth."

On checking I found an interesting article at:

http://mathworld.wolfram.com/EllipsoidGeodesic.html

that makes no such assumption. It states that an ellipsoidal geodesic can be expressed in the form of their eqs. (8) and (9) which together could constitute a pair of not very frightening-looking differential equations involving a two confocal ellipsoidal coordinates as explained in:

http://mathworld.wolfram.com/ConfocalEllipsoidalCoordinates.html ,

rather than more conventional coordinates. The independent variable would be the arc length along the geodesic, so that would fall out naturally. This seems like a fascinating possibility. There is an arbitrary constant present which they call 'theta' which presumably corresponds to the infinitely many possible closed geodesics possible on an ellipsoid through each point. The task would be to start at one point using that point's pair of confocal coordinates, and so adjust theta that you will eventually arrive at the other desired point with its particular pair of confocal coordinates.

Unfortunately the author of this article was very short on details so it would require quite a bit of study to see if there could be a useful algorithm lurking therein.

Roger Stafford
From: Els on
In my ellipsoid the radii in the x and y direction are equal and the radii in the z-direction differs. This makes that it looks like the earth, because of the shape, but not because of the size. So I thought that Vincenty's formula could work in my case. But if you think different, then I will look into it more. But the theory you are implying sounds logical, taking theta as an variable.