PathTurnAngleMaximum
Finds the maximum of the profile of turn angles of a path.
Syntax
C++
C#
Python
def PathTurnAngleMaximum( inPath: Path, /, *, inAllowedTurnDirection: TurnAngleDirection = TurnAngleDirection.All, inResultPrecision: TurnAnglePrecision = TurnAnglePrecision.PointPrecise ) -> ( outMaximumTurnAngleIndex: float, outMaximumTurnAnglePoint: Point2D, outMaximumTurnAngleAngle: float )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inPath | Path | Input path | |
![]() |
inAllowedTurnDirection | TurnAngleDirection | TurnAngleDirection.All | Allows to detect only left-turns, only right-turns or both |
![]() |
inResultPrecision | TurnAnglePrecision | TurnAnglePrecision.PointPrecise | Switches between pixel-precise or subpixel-precise detection of the found maximum |
![]() |
outMaximumTurnAngleIndex | float | Index of found maximum | |
![]() |
outMaximumTurnAnglePoint | Point2D | Found point of a path with maximum turn angle | |
![]() |
outMaximumTurnAngleAngle | float | Maximal turn angle of the input path |


