You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Distance Metrics » FIL.PointToRectangleDistance

FIL.PointToRectangleDistance

Measures the distance between point and rectangle.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void PointToRectangleDistance
(
	FilNet.Point2D inPoint,
	FilNet.Rectangle2D inRectangle,
	float inResolution,
	bool inIsFilled,
	out float outDistance,
	out FilNet.Segment2D? outConnectingSegment
)

Parameters

Name Type Range Default Description
inPointFilNet.Point2D
inRectangleFilNet.Rectangle2D
inResolutionfloat<0.0f, INF>1.0fNumber of real-world units per one pixel. Default value: 1.0f.
inIsFilledboolTrueWhether the rectangle is filled inside or not. Default value: True.
outDistancefloat
outConnectingSegmentFilNet.Segment2D?

See also