Back to FabImage Library Lite website

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

AverageAngle


Header: FIL.h
Namespace: fil

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

Syntax

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.