AngleExtensions.TryAverageAngle(IEnumerable<Angle>, Angle) Method
Definition
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.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for