PathToLineDistance
Computes the smallest distance between a path and a line.
Syntax
C++
C#
Python
def PathToLineDistance( inPath: Path, inLine: Line2D, inResolution: float, /, *, outConnectingSegment: Segment2D | None = None ) -> outDistance: float
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inPath | Path | Input path | ||
![]() |
inLine | Line2D | Input line | ||
![]() |
inResolution | float | 0.0 - ![]() |
Number of real-world units per one pixel | |
![]() |
outDistance | float | Minimal distance between input path and input line | ||
![]() |
outConnectingSegment | Segment2D | None | None | Segment connecting input path and input line having minimal length |



