WebPlanner Programmer's Guide

Utilities.DistToLineSegment Method

See Also
 


Calculates distance from the specified point to the specified line segment

Namespace: MindFusion
Assembly: MindFusion.Common

 Syntax

C#  Copy Code

public static float DistToLineSegment (
    PointF pt,
    PointF p1,
    PointF p2
)

Visual Basic  Copy Code

Public Shared Function DistToLineSegment ( _
    pt As PointF, _
    p1 As PointF, _
    p2 As PointF _
) As Single

 Parameters

pt
p1
p2

 Return Value

 See Also