You are here: Start » AVL.NET » AVL.PointToSegmentDistance Method
AVL.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 )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPoint | AvlNet.Point2D | |||
![]() | inSegment | AvlNet.Segment2D | |||
![]() | inResolution | float | <0.0f, INF> | 1.0f | Number of real-world units per one pixel. Default value: 1.0f. |
![]() | outDistance | float |
Examples
![]() |
![]() |
PointToSegmentDistance performed on a sample point and a sample segment. The green segment is the value of outConnectingSegment output.