Nevron .NET Vision
Nevron.GraphicsCore Namespace / NLineSegmentF Structure / Distance Method
The target point.


In This Topic
    Distance Method (NLineSegmentF)
    In This Topic
    Gets the distance from the line segment to the given point. The point on the segment closest to the target point is used.
    Syntax
    'Declaration
     
    
    Public Function Distance( _
       ByVal point As NPointF _
    ) As System.Single
    'Usage
     
    
    Dim instance As NLineSegmentF
    Dim point As NPointF
    Dim value As System.Single
     
    value = instance.Distance(point)
    public System.float Distance( 
       NPointF point
    )

    Parameters

    point
    The target point.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also