NevronOpenVision
Nevron.Nov.Graphics Namespace / NPolygon Class / TryGetLongestLine 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
    TryGetLongestLine 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
    public System.bool TryGetLongestLine( 
       System.double step,
       System.double minDistanceToSides,
       out NLineSegment 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 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also