NevronOpenVision
Nevron.Nov.Graphics Namespace / NRectangle Structure / IntersectWithRadianLine Method
point which forms a line with the rectangle center
resulting intersection point (if the method returned true)
resulting index of the crossed side (if the method returned true (enumeration is left, top, right, bottom)
In This Topic
    IntersectWithRadianLine Method
    In This Topic
    Intersects this rectangle with a line connecting the rectangle center and the specified point
    Syntax
    public System.bool IntersectWithRadianLine( 
       NPoint pt,
       out NPoint intersectionPoint,
       out System.int sideIndex
    )

    Parameters

    pt
    point which forms a line with the rectangle center
    intersectionPoint
    resulting intersection point (if the method returned true)
    sideIndex
    resulting index of the crossed side (if the method returned true (enumeration is left, top, right, bottom)

    Return Value

    true if the intersection was successful, otherwise false
    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