Edit

Share via


GreatCircle.CalcCoords Method

Definition

Overloads

CalcCoords(GeographicPosition, Angle, Length)

Calculate the coordinate one will be when traveling for the given distance in the given direction

CalcCoords(Double, Double, Double, Double, Double, Double)

Calculate the coordinate one will be when traveling for the given distance in the given direction

CalcCoords(GeographicPosition, Angle, Length)

Calculate the coordinate one will be when traveling for the given distance in the given direction

public static Iot.Device.Common.GeographicPosition CalcCoords (Iot.Device.Common.GeographicPosition start, UnitsNet.Angle direction, UnitsNet.Length distance);
static member CalcCoords : Iot.Device.Common.GeographicPosition * UnitsNet.Angle * UnitsNet.Length -> Iot.Device.Common.GeographicPosition
Public Shared Function CalcCoords (start As GeographicPosition, direction As Angle, distance As Length) As GeographicPosition

Parameters

start
GeographicPosition

Starting point

direction
UnitsNet.Angle

Initial direction

distance
UnitsNet.Length

Distance to travel

Returns

The new position

Exceptions

The start position is null

Applies to

CalcCoords(Double, Double, Double, Double, Double, Double)

Calculate the coordinate one will be when traveling for the given distance in the given direction

public static void CalcCoords (double startLatitude, double startLongitude, double direction, double distance, out double resultLatitude, out double resultLongitude);
static member CalcCoords : double * double * double * double * double * double -> unit
Public Shared Sub CalcCoords (startLatitude As Double, startLongitude As Double, direction As Double, distance As Double, ByRef resultLatitude As Double, ByRef resultLongitude As Double)

Parameters

startLatitude
Double

Starting point latitude

startLongitude
Double

Starting point longitude

direction
Double

Initial direction

distance
Double

Distance to travel

resultLatitude
Double

End point latitude

resultLongitude
Double

End point longitude

Remarks

Prefer using CalcCoords(GeographicPosition, Angle, Length) to avoid errors from exchanged parameters or wrong units

Applies to