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


In This Topic
    DistanceSquare Method
    In This Topic
    Gets the distance (to the power of 2) from the line segment to the given point. The point on the segment closest to the target point is used.
    Syntax
    'Declaration
     
    
    Public Function DistanceSquare( _
       ByVal point As NPointF _
    ) As System.Single
    'Usage
     
    
    Dim instance As NLineSegmentF
    Dim point As NPointF
    Dim value As System.Single
     
    value = instance.DistanceSquare(point)
    public System.float DistanceSquare( 
       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