Nevron .NET Vision
Nevron.GraphicsCore Namespace / NPolygonF Class / GetLongestLine Method / GetLongestLine(Single,Single,NLineSegmentF) Method
The step with which the scan line jumps down.
The minimum distance from the found line's center to the sides of the polygon.
The resulting longest inner line.


In This Topic
    GetLongestLine(Single,Single,NLineSegmentF) Method
    In This Topic
    Gets the longest horizontal inner line in the polygon that is at least at the specified distance from all sides. Returns false if no such line exists.
    Syntax
    'Declaration
     
    
    Public Overloads Function GetLongestLine( _
       ByVal step As System.Single, _
       ByVal minDistanceToSides As System.Single, _
       ByRef longestLine As NLineSegmentF _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NPolygonF
    Dim step As System.Single
    Dim minDistanceToSides As System.Single
    Dim longestLine As NLineSegmentF
    Dim value As System.Boolean
     
    value = instance.GetLongestLine(step, minDistanceToSides, longestLine)
    public System.bool GetLongestLine( 
       System.float step,
       System.float minDistanceToSides,
       out NLineSegmentF longestLine
    )

    Parameters

    step
    The step with which the scan line jumps down.
    minDistanceToSides
    The minimum distance from the found line's center to the sides of the polygon.
    longestLine
    The resulting longest inner line.
    Remarks
    The complexity of the algorithm is O(n * log2(n)).
    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