You are here: Start » AVL.NET » Invoke.PathToLineDistance
Computes the smallest distance between a path and a line.
| Namespace: | Avl | 
|---|---|
| Assembly: | AvlNet.dll | 
Syntax
C++
C#
public static void PathToLineDistance ( Avl.Path inPath, Avl.Line2D inLine, float inResolution, out float outDistance, Optional<Avl.Segment2D> outConnectingSegment )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]()  | inPath | Avl.Path | Input path. | ||
![]()  | inLine | Avl.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 | Atl.Optional<Avl.Segment2D> | Segment connecting input path and input line having minimal length. | 


