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 | |
|---|---|---|---|---|---|
![]() |
inPoint | Point2D | |||
![]() |
inRectangle | Rectangle2D | |||
![]() |
inResolution | float | 0.0 - ![]() |
Number of real-world units per one pixel | |
![]() |
inIsFilled | bool | Whether the rectangle is filled inside or not | ||
![]() |
outDistance | float | |||
![]() |
outConnectingSegment | Segment2D | None |



