Edit

Share via


GreatCircle.CalculateVelocityTowardsTarget Method

Definition

Calculate the velocity towards (or away from) the target. This is often also called VMG (=Velocity made good)

public static UnitsNet.Speed CalculateVelocityTowardsTarget (Iot.Device.Common.GeographicPosition destination, Iot.Device.Common.GeographicPosition currentPosition, UnitsNet.Speed currentSpeed, UnitsNet.Angle currentTrack);
static member CalculateVelocityTowardsTarget : Iot.Device.Common.GeographicPosition * Iot.Device.Common.GeographicPosition * UnitsNet.Speed * UnitsNet.Angle -> UnitsNet.Speed
Public Shared Function CalculateVelocityTowardsTarget (destination As GeographicPosition, currentPosition As GeographicPosition, currentSpeed As Speed, currentTrack As Angle) As Speed

Parameters

destination
GeographicPosition

Target waypoint

currentPosition
GeographicPosition

Current position

currentSpeed
UnitsNet.Speed

Current speed over ground

currentTrack
UnitsNet.Angle

Current track (course over ground)

Returns

UnitsNet.Speed

Speed towards target. Negative if moving away from target

Applies to