PathTurnAngleMaximum_OrNil
Finds the maximum of the profile of turn angles of a path; returns NIL if the path has no turn angles.
Syntax
C++
C#
Python
def PathTurnAngleMaximum_OrNil( inPath: Path, /, *, inAllowedTurnDirection: TurnAngleDirection = TurnAngleDirection.All, inResultPrecision: TurnAnglePrecision = TurnAnglePrecision.PointPrecise ) -> ( outMaximumTurnAngleIndex: float | None, outMaximumTurnAnglePoint: Point2D | None, outMaximumTurnAngleAngle: float | None )
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 | None | Index of found maximum | |
![]() |
outMaximumTurnAnglePoint | Point2D | None | Found point of a path with maximum turn angle | |
![]() |
outMaximumTurnAngleAngle | float | None | Maximal turn angle of the input path |


