You are here: Start » AVL.NET » AVL.PathToPointDistance(AvlNet.Point2D, AvlNet.Path, float, float, AvlNet.Segment2D)

AVL.PathToPointDistance(AvlNet.Point2D, AvlNet.Path, float, float, AvlNet.Segment2D)

Computes the smallest distance between a path and a point.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void PathToPointDistance(
	AvlNet.Point2D inPoint,
	AvlNet.Path inPath,
	float inResolution,
	out float outDistance,
	out AvlNet.Segment2D outConnectingSegment
)

Parameters

inPoint
Type: AvlNet.Point2D
Input point
inPath
Type: AvlNet.Path
Input path
inResolution
Type: System.Single
outDistance
Type: System.Single
Minimal distance between input path and input point
outConnectingSegment
Type: AvlNet.Segment2D

Description

The operation computes the minimal distance between the inPoint and inPath and, additionally, the outConnectingSegment segment corresponding to the result.

Examples

The PathToPointDistance run on the sample data produces outDistance = 75.373.

Errors

Error type Description
DomainError Empty path on input in PathToPointDistance.

See also