You are here: Start » AVL.NET » Function Reference » Path » Path Features » AVL.PathTurnAngleMaximum_OrNil

AVL.PathTurnAngleMaximum_OrNil

Finds the maximum of the profile of turn angles of a path; returns NIL if the path has no turn angles.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void PathTurnAngleMaximum_OrNil
(
	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.
outMaximumTurnAngleIndexfloat?Index of found maximum.
outMaximumTurnAnglePointAvlNet.Point2D?Found point of a path with maximum turn angle.
outMaximumTurnAngleAnglefloat?Maximal turn angle of the input path.

See also