MindFusion.Wpf Pack Programmer's Guide
Utilities.DistToPolyline Method (Point, IList, Int32, Int32@)
See Also
 





Calculates the shortest distance from the specified point to the specified polyline, also returning the index of the segment the point is closest to.

Namespace: MindFusion
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public static double DistToPolyline (
    Point pt,
    IList line_pts,
    int nPoints,
    ref int segmNum
)

Visual Basic  Copy Code

Public Shared Function DistToPolyline( _
    pt As Point, _
    line_pts As IList, _
    nPoints As Integer, _
    ByRef segmNum As Integer _
) As Double

 Parameters

pt

line_pts

nPoints

segmNum

 Return Value

 See Also

DistToPolyline Method Overload List
Utilities Members
Utilities Class
MindFusion Namespace