Tag Archives: distances

Calculate the great circle distance between two latitudes and longitudes in C#

At a small scale, the world is relatively flat. At larger scale, however, is it roughly spherical. (Sorry flat-earthers.) That means the shortest distance between two points on the globe is not a straight line. (Unless you have amazing teleportation … Continue reading

Posted in mathematics | Tagged , , , , , , , , , | 1 Comment

Convert latitudes and longitudes into distances on the globe in C#

This example shows how you can convert latitudes and longitudes into distances on the globe. The formulas for performing those calculations is interesting but the program is also interesting for the ways it uses LINQ. The program stores information about … Continue reading

Posted in algorithms, LINQ, mathematics | Tagged , , , , , , , , , , , , | 1 Comment