Back to FabImage Library website

You are here: Start » Function Reference » Path » Path Features » PathAverageTurnAngle

PathAverageTurnAngle


Header: FIL.h
Namespace: fil
Module: FoundationPro

Computes the average absolute turn angle of a path per unit of length.

Syntax

C++
C#
 
void fil::PathAverageTurnAngle
(
	const fil::Path& inPath,
	float& outAverageTurnAngle
)

Parameters

Name Type Default Description
Input value
inPath const Path& Input path
Output value
outAverageTurnAngle float&

Description

The operation measures acuteness of the path turn angles. It is computed as the sum of absolute values of path turn angles at path characteristic points divided by length of the path.

Examples

PathAverageTurnAngle of the sample path equals to 161.57.

PathAverageTurnAngle of the sample path equals to 81.16.

Errors

List of possible exceptions:

Error type Description
DomainError Input path contains not enough points in PathAverageTurnAngle.

See Also