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
Input value inPath Path Input path
Input value inLine Line2D Input line
Input value inResolution float 0.0 - Number of real-world units per one pixel
Output value outDistance float Minimal distance between input path and input line
Output value outConnectingSegment Segment2D | None None Segment connecting input path and input line having minimal length