AngleExtensions.TryAverageAngle(IEnumerable<Angle>, Angle) Method

Definition

Calculates the average (medium) of a set of points. See https://en.wikipedia.org/wiki/Mean_of_circular_quantities This method fails if an empty input set is provided or the inputs are evenly distributed over the circle.

public static bool TryAverageAngle (this System.Collections.Generic.IEnumerable<UnitsNet.Angle> inputAngles, out UnitsNet.Angle result);
static member TryAverageAngle : seq<UnitsNet.Angle> * Angle -> bool
<Extension()>
Public Function TryAverageAngle (inputAngles As IEnumerable(Of Angle), ByRef result As Angle) As Boolean

Parameters

inputAngles
IEnumerable<UnitsNet.Angle>

A set of angles

result
UnitsNet.Angle

The angle that is the mean of the given angles.

Returns

True on success, false otherwise.

Applies to