GreatCircle.CalcCoords Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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
.NET IoT Libraries 2.2.0 and .NET IoT Libraries 2.1.0
Product | Versions |
---|---|
.NET IoT Libraries | 2.1.0, 2.2.0 |
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
.NET IoT Libraries 2.2.0 and .NET IoT Libraries 2.1.0
Product | Versions |
---|---|
.NET IoT Libraries | 2.1.0, 2.2.0 |