PointToRectangleDistance


Measures the distance between point and rectangle.

Syntax

C++
Python
 
def PointToRectangleDistance(
	inPoint: Point2D,
	inRectangle: Rectangle2D,
	inResolution: float,
	inIsFilled: bool,
	/
)
-> (
	outDistance: float,
	outConnectingSegment: Segment2D | None
)

Parameters

Name Type Range Default Description
Input value inPoint Point2D
Input value inRectangle Rectangle2D
Input value inResolution float 0.0 - Number of real-world units per one pixel
Input value inIsFilled bool Whether the rectangle is filled inside or not
Output value outDistance float
Output value outConnectingSegment Segment2D | None