Back to FabImage Library website

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

AverageAngle


Header: FIL.h
Namespace: fil
Module: FoundationLite

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

Syntax

C++
C#
 
void fil::AverageAngle
(
	const ftl::Array<float>& inAngles,
	fil::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.