You are here: Start » AVL.NET » AVL.PathToLineDistance
Computes the smallest distance between a path and a line.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void PathToLineDistance ( AvlNet.Path inPath, AvlNet.Line2D inLine, float inResolution, out float outDistance, out AvlNet.Segment2D outConnectingSegment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPath | AvlNet.Path | Input path. | |||
inLine | AvlNet.Line2D | Input line. | |||
inResolution | float | <0.0f, INF> | 1.0f | Number of real-world units per one pixel. Default value: 1.0f. | |
outDistance | float | Minimal distance between input path and input line. | |||
outConnectingSegment | AvlNet.Segment2D | Segment connecting input path and input line having minimal length |
Errors
Error type | Description |
---|---|
DomainError | Empty path on input in PathToLineDistance. |
DomainError | Indefinite line on input in PathToLineDistance. |