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

AVL.PathToLineDistanceProfile

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void PathToLineDistanceProfile
(
	AvlNet.Path inPath,
	AvlNet.Line2D inLine,
	float inResolution,
	AvlNet.Profile outDistanceProfile,
	IList<float> outDistances,
	IList<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.
outDistancesSystem.Collections.Generic.IList<float>Distances between input line and consecutive points of input path.
outConnectingSegmentsSystem.Collections.Generic.IList<AvlNet.Segment2D>Segments connecting input line and consecutive points of input path having minimal length.

Errors

List of possible exceptions:

Error type Description
DomainError Indefinite line on input in PathToLineDistanceProfile.

Function Overrides

See also