1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Find the closest point.

Discussion in 'SimConnect' started by roberto52, 15/12/07.

  1. roberto52

    roberto52

    Joined:
    29/4/07
    Messages:
    25
    I have a list of points ( Lat and Long) in a bidimensional array ( about 100).

    Is there any function or method in Simconnect i can find the closest to my aircraft position or ( as i did ) i have to calculate all the distances of the elements in the array and find the min??

    Thanks.
    Rob
  2. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,263
    Country:
    netherlands
    Hi,

    I don't think SimConnect has such a function, so you would have to do the math yourself I guess.

Share This Page