You are here: Start » AVL.NET » AVS.PathToLineDistance Method
AVS.PathToLineDistance Method
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
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. |
Function Overrides
- PathToLineDistance(Path, Line2D, Single, Single)
- PathToLineDistance(Path, Line2D, Single, Single, NullableValue<Segment2D>)