You are here: Start » AVL.NET » Invoke.PathToPointDistance

Invoke.PathToPointDistance

Computes the smallest distance between a path and a point.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void PathToPointDistance
(
	Avl.Point2D inPoint,
	Avl.Path inPath,
	float inResolution,
	out float outDistance,
	Optional<Avl.Segment2D> outConnectingSegment
)

Parameters

Name Type Range Default Description
inPointAvl.Point2DInput point.
inPathAvl.PathInput path.
inResolutionfloat<0.0f, INF>1.0fDefault value: 1.0f.
outDistancefloatMinimal distance between input path and input point.
outConnectingSegmentAtl.Optional<Avl.Segment2D>Segment connecting input path and input point having minimal length.

See also