Back to Aurora Vision Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Interpolations » AverageAngle

AverageAngle


Header: AVL.h
Namespace: avl
Module: FoundationLite

Computes the average of the input angles using points on a unit circle.

Syntax

C++
C#
 
void avl::AverageAngle
(
	const atl::Array<float>& inAngles,
	avl::AngleRange::Type inAngleRange,
	float& outAverageAngle
)

Parameters

Name Type Default Description
Input value inAngles const Array<float>&
Input value inAngleRange AngleRange::Type _0_180
Output value outAverageAngle float&

Errors

List of possible exceptions:

Error type Description
DomainError Empty array on input in AverageAngle.