Back to FabImage Library website
You are here: Start » Function Reference » Path » Path Features » PathTurnAngleMaximum_OrNil

PathTurnAngleMaximum_OrNil
Header: | FIL.h |
---|---|
Namespace: | fil |
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 fil::PathTurnAngleMaximum_OrNil ( const fil::Path& inPath, fil::TurnAngleDirection::Type inAllowedTurnDirection, fil::TurnAnglePrecision::Type inResultPrecision, ftl::Conditional<float>& outMaximumTurnAngleIndex, ftl::Conditional<fil::Point2D>& outMaximumTurnAnglePoint, ftl::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 |