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.InterfaceAssembly: 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
)
Public Shared Function Bearing (
startLatitude As Nullable(Of Double),
startLongitude As Nullable(Of Double),
endLatitude As Nullable(Of Double),
endLongitude As Nullable(Of Double),
currentTrack As Nullable(Of Double),
reverseBearing As Boolean,
ignoreCurrentTrack As Boolean
) As Nullable(Of Double)
public:
static Nullable<double> Bearing(
Nullable<double> startLatitude,
Nullable<double> startLongitude,
Nullable<double> endLatitude,
Nullable<double> endLongitude,
Nullable<double> currentTrack,
bool reverseBearing,
bool ignoreCurrentTrack
)
static member Bearing :
startLatitude : Nullable<float> *
startLongitude : Nullable<float> *
endLatitude : Nullable<float> *
endLongitude : Nullable<float> *
currentTrack : Nullable<float> *
reverseBearing : bool *
ignoreCurrentTrack : bool -> Nullable<float>
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:
NullableDoubleSee Also