Back to Aurora Vision Library Lite website
You are here: Start » Geometry 2D » Geometry 2D Interpolations » MedianAngle
MedianAngle
| Header: | AVL.h |
|---|---|
| Namespace: | avl |
Computes the median angle of the input angles.
Applications: This is a substitute for arithmetic average which cannot be done well for angles. For example the average of 1 and 359 is incorrectly 180 (we think 0).
Syntax
void avl::MedianAngle ( const atl::Array<float>& inAngles, avl::AngleRange::Type inAngleRange, float& outMedianAngle )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inAngles | const Array<float>& | ||
![]() |
inAngleRange | AngleRange::Type | _0_180 | |
![]() |
outMedianAngle | float& |
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Empty array on input in MedianAngle. |


