You are here: Start » AVL.NET » AVL.PathToLineDistance(AvlNet.Path, AvlNet.Line2D, float, float, AvlNet.Segment2D)

AVL.PathToLineDistance(AvlNet.Path, AvlNet.Line2D, float, float, AvlNet.Segment2D)

Computes the smallest distance between a path and a line.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void PathToLineDistance(
	AvlNet.Path inPath,
	AvlNet.Line2D inLine,
	float inResolution,
	out float outDistance,
	out AvlNet.Segment2D outConnectingSegment
)

Parameters

inPath
Type: AvlNet.Path
Input path
inLine
Type: AvlNet.Line2D
Input line
inResolution
Type: System.Single
Number of real-world units per one pixel
outDistance
Type: System.Single
Minimal distance between input path and input line
outConnectingSegment
Type: AvlNet.Segment2D

Errors

Error type Description
DomainError Empty path on input in PathToLineDistance.
DomainError Indefinite line on input in PathToLineDistance.

See also