You are here: Start » AVL.NET » AVS.PointToRectangleDistance Method

AVS.PointToRectangleDistance Method

Measures the distance between point and rectangle.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

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

Parameters

Name Type Range Default Description
inPointAvlNet.Point2D
inRectangleAvlNet.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
outConnectingSegmentAvlNet.Segment2D?

See also