Back to Aurora Vision Library website
You are here: Start » Function Reference » Path » Path Features » PathTurnAngleMaximum_OrNil
![](../../img/icon/PathAverageTurnAngle.png)
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 | |
---|---|---|---|---|
![]() |
inPath | const Path& | Input path | |
![]() |
inAllowedTurnDirection | TurnAngleDirection::Type | All | Allows to detect only left-turns, only right-turns or both |
![]() |
inResultPrecision | TurnAnglePrecision::Type | Switches between pixel-precise or subpixel-precise detection of the found maximum | |
![]() |
outMaximumTurnAngleIndex | Conditional<float>& | Index of found maximum | |
![]() |
outMaximumTurnAnglePoint | Conditional<Point2D>& | Found point of a path with maximum turn angle | |
![]() |
outMaximumTurnAngleAngle | Conditional<float>& | Maximal turn angle of the input path |