PDA

View Full Version : Find the closest point.


roberto52
15 Dec 2007, 04:17
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

arno
15 Dec 2007, 05:52
Hi,

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