GeoUtils.CalculateBearing(GeoPoint, GeoPoint) Method
Computes an angle between the Geodetic North direction and a line given by two points, clockwise in degrees.
public static double CalculateBearing( GeoPoint p1, GeoPoint p2 )
Public Shared Function CalculateBearing( p1 As GeoPoint, p2 As GeoPoint ) As Double
The first geographical point.
The second geographical point.
The bearing in degrees.
Note that the perpendicular line to the Geodetic North is plotted from the first point.
The code below calculates the bearing by two geographical points.
double bearing = GeoUtils.CalculateBearing(new GeoPoint(36.1, -115.1), new GeoPoint(35.9, -115.9));