MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Plot line between two points on ellipsoid 

Subject: Plot line between two points on ellipsoid From: Els Date: 16 May, 2010 15:47:03 Message: 1 of 12 
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. 
Subject: Plot line between two points on ellipsoid From: us Date: 16 May, 2010 15:54:04 Message: 2 of 12 
"Els " <y.e.t.reeuwijk@student.utwente.nl> wrote in message <hsp41n$28e$1@fred.mathworks.com>... 
Subject: Plot line between two points on ellipsoid From: Mark Shore Date: 16 May, 2010 16:00:06 Message: 3 of 12 
"Els " <y.e.t.reeuwijk@student.utwente.nl> wrote in message <hsp41n$28e$1@fred.mathworks.com>... 
Subject: Plot line between two points on ellipsoid From: Els Date: 16 May, 2010 16:09:04 Message: 4 of 12 
This is indeed the problem, because I am using a small ellipsoid, which does not look like the earth. Now I just copied the formulas I used from the times I used a simple sphere, and it looks really crap. 
Subject: Plot line between two points on ellipsoid From: us Date: 16 May, 2010 16:17:04 Message: 5 of 12 
"Els " <y.e.t.reeuwijk@student.utwente.nl> wrote in message <hsp5b0$3se$1@fred.mathworks.com>... 
Subject: Plot line between two points on ellipsoid From: Mark Shore Date: 16 May, 2010 16:21:03 Message: 6 of 12 
"Els " <y.e.t.reeuwijk@student.utwente.nl> wrote in message <hsp5b0$3se$1@fred.mathworks.com>... 
Subject: Plot line between two points on ellipsoid From: Bruno Luong Date: 16 May, 2010 16:34:03 Message: 7 of 12 
"Els " <y.e.t.reeuwijk@student.utwente.nl> wrote in message <hsp5b0$3se$1@fred.mathworks.com>... 
Subject: Plot line between two points on ellipsoid From: Mark Shore Date: 16 May, 2010 18:02:03 Message: 8 of 12 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <hsp6pr$g8d$1@fred.mathworks.com>... 
Subject: Plot line between two points on ellipsoid From: Els Date: 16 May, 2010 18:11:03 Message: 9 of 12 
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. 
Subject: Plot line between two points on ellipsoid From: Mark Shore Date: 16 May, 2010 19:05:04 Message: 10 of 12 
"Els " <y.e.t.reeuwijk@student.utwente.nl> wrote in message <hspcfn$nlm$1@fred.mathworks.com>... 
Subject: Plot line between two points on ellipsoid From: Roger Stafford Date: 17 May, 2010 02:35:05 Message: 11 of 12 
"Els " <y.e.t.reeuwijk@student.utwente.nl> wrote in message <hsp41n$28e$1@fred.mathworks.com>... 
Subject: Plot line between two points on ellipsoid From: Els Date: 17 May, 2010 09:38:03 Message: 12 of 12 
In my ellipsoid the radii in the x and y direction are equal and the radii in the zdirection 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. 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.