PointToLineDistance


Measures the distance between a point and a line.

Syntax

C++
Python
 
def PointToLineDistance(
	inPoint: Point2D,
	inLine: Line2D,
	inResolution: float,
	/,
	*,
	outConnectingSegment: Segment2D | None = None
)
-> (
	outDistance: float,
	outSignedDistance: float
)

Parameters

Name Type Range Default Description
Input value inPoint Point2D
Input value inLine Line2D
Input value inResolution float 0.0 - Number of real-world units per one pixel
Output value outDistance float
Output value outConnectingSegment Segment2D | None None
Output value outSignedDistance float