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

C#
public static Iot.Device.Common.GeographicPosition CalcCoords (Iot.Device.Common.GeographicPosition start, UnitsNet.Angle direction, UnitsNet.Length distance);

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

.NET IoT Libraries 2.2.0 and .NET IoT Libraries 2.1.0
Product Versions
.NET IoT Libraries 2.1.0, 2.2.0

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

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

C#
public static void CalcCoords (double startLatitude, double startLongitude, double direction, double distance, out double resultLatitude, out double resultLongitude);

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

.NET IoT Libraries 2.2.0 and .NET IoT Libraries 2.1.0
Product Versions
.NET IoT Libraries 2.1.0, 2.2.0