Hello,
Im currently working on a project where it is necessary to find the intersection point between 2 lines with endpoints given in lat long coordinates. I have read some of the other posts in the forum, and seen an algorithm which should solve this - but I can not make it work when I translate it into C# - using the translated version of the GeographicLib (https://github.com/PyxisInt/GeographicLib)
Its the code provided below which is the problem. The first iteration, makes an ok guess, but it does not make a new guess affected by the previous resulting in just making the same calculations over and over. Can someone spot the error?
Hello,
Im currently working on a project where it is necessary to find the intersection point between 2 lines with endpoints given in lat long coordinates. I have read some of the other posts in the forum, and seen an algorithm which should solve this - but I can not make it work when I translate it into C# - using the translated version of the GeographicLib (https://github.com/PyxisInt/GeographicLib)
Its the code provided below which is the problem. The first iteration, makes an ok guess, but it does not make a new guess affected by the previous resulting in just making the same calculations over and over. Can someone spot the error?
best regards - and thanks in advance!