From an API i got a "list of lists" containing different coordinates:
List = [[1.0, 2.5, 3.6], [2.02, 2.3, 3.1], [1.5, 6.5, 3.9]]
I have to find the minimum distance between two coordinates. I did something like:
MinDist = 9999999999.
for Coord1 in List:
for Coord2 in List:
if Coord1 != Coord2:
Dist = CalcDistance(Coord1,Coord2)
if Dist < MinDist:
MinDist=Dist
Is there a more "intelligent" (and faster) way to get this information?