You are here: Start » AVL.NET » AVS.PathTurnAngleMaximum Method

AVS.PathTurnAngleMaximum Method

Finds the maximum of the profile of turn angles of a path.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void PathTurnAngleMaximum
(
	AvlNet.Path inPath,
	AvlNet.TurnAngleDirection inAllowedTurnDirection,
	AvlNet.TurnAnglePrecision inResultPrecision,
	out float outMaximumTurnAngleIndex,
	out AvlNet.Point2D outMaximumTurnAnglePoint,
	out float outMaximumTurnAngleAngle
)

Parameters

Name Type Range Default Description
inPathAvlNet.PathInput path.
inAllowedTurnDirectionAvlNet.TurnAngleDirectionAllAllows to detect only left-turns, only right-turns or both. Default value: All.
inResultPrecisionAvlNet.TurnAnglePrecisionSwitches between pixel-precise or subpixel-precise detection of the found maximum.
outMaximumTurnAngleIndexfloatIndex of found maximum.
outMaximumTurnAnglePointAvlNet.Point2DFound point of a path with maximum turn angle.
outMaximumTurnAngleAnglefloatMaximal turn angle of the input path.

See also