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
Input value inPath Path Input path
Input value inAllowedTurnDirection TurnAngleDirection TurnAngleDirection.All Allows to detect only left-turns, only right-turns or both
Input value inResultPrecision TurnAnglePrecision TurnAnglePrecision.PointPrecise Switches between pixel-precise or subpixel-precise detection of the found maximum
Output value outMaximumTurnAngleIndex float Index of found maximum
Output value outMaximumTurnAnglePoint Point2D Found point of a path with maximum turn angle
Output value outMaximumTurnAngleAngle float Maximal turn angle of the input path