havDistance static method
Returns hav() of distance from (lat1, lng1) to (lat2, lng2) on the
unit sphere, where dLng = lng1 − lng2.
Implementation
static double havDistance(double lat1, double lat2, double dLng) =>
hav(lat1 - lat2) + hav(dLng) * cos(lat1) * cos(lat2);