Intersection of 2 lines

I know that it's possible to get intersection of 2 lines in GM. But is there any fonction in SDK which gives the intersection in (lat, long) from 4 points (2 lines) or 2 points and 2 bearings ? 

Thanks for your help


Answers

  • bmg_bob
    bmg_bob Global Mapper Programmer
    Answer ✓
    Hello,

    I don't see a Global Mapper SDK function that gives you the intersection from points.  You will have to implement that one yourself.  Here is a link to a web site that describes the required algorithm.

    Cheers,

    Bob
  • Tibo
    Answer ✓
    Thank you Bob!

    I think this algorithm is true in 2D. But, we have to take into account the ellipsoid model (we have geographical coordinates). An approximative but enough precise method would be to use a spherical model (intersection of 2 arcs), what do you think?