Back to Aurora Vision Library website

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

PathTurnAngleMaximum_OrNil


Header: AVL.h
Namespace: avl
Module: FoundationPro

Finds the maximum of the profile of turn angles of a path; returns NIL if the path has no turn angles.

Syntax

C++
C#
 
void avl::PathTurnAngleMaximum_OrNil
(
	const avl::Path& inPath,
	avl::TurnAngleDirection::Type inAllowedTurnDirection,
	avl::TurnAnglePrecision::Type inResultPrecision,
	atl::Conditional<float>& outMaximumTurnAngleIndex,
	atl::Conditional<avl::Point2D>& outMaximumTurnAnglePoint,
	atl::Conditional<float>& outMaximumTurnAngleAngle
)

Parameters

Name Type Default Description
Input value inPath const Path& Input path
Input value inAllowedTurnDirection TurnAngleDirection::Type All Allows to detect only left-turns, only right-turns or both
Input value inResultPrecision TurnAnglePrecision::Type Switches between pixel-precise or subpixel-precise detection of the found maximum
Output value outMaximumTurnAngleIndex Conditional<float>& Index of found maximum
Output value outMaximumTurnAnglePoint Conditional<Point2D>& Found point of a path with maximum turn angle
Output value outMaximumTurnAngleAngle Conditional<float>& Maximal turn angle of the input path