Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NGeometry2D Class / Intersects Method
The start point of the first line segment.
The end point of the first line segment.
The start point of the second line segment.
The end point of the second line segment.
The resulting intersection point.


In This Topic
    Intersects Method (NGeometry2D)
    In This Topic
    Checks whether two line segments intersect and returns the intersection point as an out parameter if they do.
    Syntax
    'Declaration
     
    
    Public Shared Function Intersects( _
       ByVal a1 As NPoint, _
       ByVal a2 As NPoint, _
       ByVal b1 As NPoint, _
       ByVal b2 As NPoint, _
       ByRef intersectionPoint As NPoint _
    ) As ENLineSegmentsRelation
    'Usage
     
    
    Dim a1 As NPoint
    Dim a2 As NPoint
    Dim b1 As NPoint
    Dim b2 As NPoint
    Dim intersectionPoint As NPoint
    Dim value As ENLineSegmentsRelation
     
    value = NGeometry2D.Intersects(a1, a2, b1, b2, intersectionPoint)

    Parameters

    a1
    The start point of the first line segment.
    a2
    The end point of the first line segment.
    b1
    The start point of the second line segment.
    b2
    The end point of the second line segment.
    intersectionPoint
    The resulting intersection point.
    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