AngleExtensions.Difference(Angle, Angle) Method

Definition

Calculate the difference between two angles. Useful to compute the angle error between a desired and an actual track.

public static UnitsNet.Angle Difference (UnitsNet.Angle currentTrack, UnitsNet.Angle destinationTrack);
static member Difference : UnitsNet.Angle * UnitsNet.Angle -> UnitsNet.Angle
Public Function Difference (currentTrack As Angle, destinationTrack As Angle) As Angle

Parameters

currentTrack
UnitsNet.Angle

First angle, actual direction

destinationTrack
UnitsNet.Angle

Second angle, desired direction

Returns

UnitsNet.Angle

The normalized result of currentTrack-destinationTrack. The value is negative if the current track is to port (left) of the the desired track and positive otherwise

Applies to