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

AVS.PointToSegmentDistance Method

Measures the distance between a point and a segment.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void PointToSegmentDistance
(
	AvlNet.Point2D inPoint,
	AvlNet.Segment2D inSegment,
	float inResolution,
	out float outDistance,
	NullableValue<AvlNet.Segment2D> outConnectingSegment
)

Parameters

Name Type Range Default Description
inPointAvlNet.Point2D
inSegmentAvlNet.Segment2D
inResolutionfloat<0.0f, INF>1.0fNumber of real-world units per one pixel. Default value: 1.0f.
outDistancefloat
outConnectingSegmentAvlNet.NullableValue<AvlNet.Segment2D> Can be null to skip this parameter calculation.

Function Overrides

See also