I have two geo coordinates positions on the earth.
Using .NET I can easily calculate the distance:
GeoCoordinate a = new GeoCoordinate(50, 8);
GeoCoordinate b = new GeoCoordinate(34, -118);
double distanceInMeters = a.GetDistanceTo(b);
This uses the Haversine formula and execution is extremely fast.
How can i get the bearing using the same spherial model which the Haversine formula uses?
I would be happy with something like:
double bearing = HaversineBearingCalculator.calcBearingInDegrees(a, b);
or even
double bearing = a.GetBearingTo(b);
However .NET does not seem to offer anything like it.