You are here: Start » AVL.NET » AVL.PathToLineDistanceProfile Method

AVL.PathToLineDistanceProfile Method

Computes the profile of distances between a line and the characteristic points of a path.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void PathToLineDistanceProfile(
	AvlNet.Path inPath,
	AvlNet.Line2D inLine,
	float inResolution,
	out AvlNet.Profile outDistanceProfile,
	out float[] outDistances,
	out AvlNet.Segment2D[] outConnectingSegments
)

Parameters

Name Type Range Default Description
inPathAvlNet.PathInput path.
inLineAvlNet.Line2DInput line.
inResolutionfloat<0.0f, INF>1.0fNumber of real-world units per one pixel. Default value: 1.0f.
outDistanceProfileAvlNet.ProfileProfile of distances between input line and consecutive points of input path.
outDistancesfloatDistances between input line and consecutive points of input path
outConnectingSegmentsAvlNet.Segment2DSegments connecting input line and consecutive points of input path having minimal length

Errors

Error type Description
DomainError Indefinite line on input in PathToLineDistanceProfile.

See also