Coding BosonFeb 26
Arc and distance between two points on Earth surface
The following C++ snippet computes the arc (in radians) and the distance (in meters) between two positions on Earth using the law of haversines.
It assumes a Position class exists, with two public members for the longitude and the latitude (resp. lon and lat).