Click or drag to resize
GreatCircleMathsBearing Method
Given two points on the earth's surface this calculates either the bearing to take from point A to get to point B. It can optionally take a pre-calculated bearing and return that if the start and end points are the same.

Namespace: VirtualRadar.Interface
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static Nullable<double> Bearing(
	Nullable<double> startLatitude,
	Nullable<double> startLongitude,
	Nullable<double> endLatitude,
	Nullable<double> endLongitude,
	Nullable<double> currentTrack,
	bool reverseBearing,
	bool ignoreCurrentTrack
)

Parameters

startLatitude
Type: SystemNullableDouble
startLongitude
Type: SystemNullableDouble
endLatitude
Type: SystemNullableDouble
endLongitude
Type: SystemNullableDouble
currentTrack
Type: SystemNullableDouble
The brearing to return if ignoreCurrentTrack is false and the start and end points are the same.
reverseBearing
Type: SystemBoolean
True if the bearing should be reversed.
ignoreCurrentTrack
Type: SystemBoolean
True if the bearing should always be calculated and possible shortcuts ignored.

Return Value

Type: NullableDouble
See Also