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)
| 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
- inPath
- Type: AvlNet.Path
- inResolution
- Type: System.Single
- outDistance
- Type: System.Single
- 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. |

