Comment Two Point problem (Score 1) 3
alexmipego,
I have worked on this type of problem for quite some time. The algorithm you are working on is known as the Inverse Solution of the Geodetic Problem. It has been solved some time ago in a paper known as "DIRECT AND INVERSE SOLUTIONS OF GEODESICS ON THE ELLIPSOID WITH APPLICATION OF NESTED EQUATIONS" written by T. Vincenty back in 1975. I have written code to solve this problem along with it's compliment known as the Direct Solution. Earlier work on this problem was done by E. Sodano back in 1963.
If you would like a copy of these two papers, Please let me know.
Vic Fraenckel
windswaytoo ATSIGN gmail DOT com