You are here: Start » AVL.NET » AVS.PathToPointDistance Method
AVS.PathToPointDistance Method
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, NullableValue<AvlNet.Segment2D> outConnectingSegment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoint | AvlNet.Point2D | Input point. | |||
inPath | AvlNet.Path | Input path. | |||
inResolution | float | <0.0f, INF> | 1.0f | Default value: 1.0f. | |
outDistance | float | Minimal distance between input path and input point. | |||
outConnectingSegment | AvlNet.NullableValue<AvlNet.Segment2D> | Segment connecting input path and input point having minimal length. Can be null to skip this parameter calculation. |
Function Overrides
- PathToPointDistance(Point2D, Path, Single, Single)
- PathToPointDistance(Point2D, Path, Single, Single, Segment2D)