Nevron .NET Vision
Nevron.GraphicsCore 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 if 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 NPointF, _
       ByVal a2 As NPointF, _
       ByVal b1 As NPointF, _
       ByVal b2 As NPointF, _
       ByRef intersectionPoint As NPointF _
    ) As LineSegmentsRelation
    'Usage
     
    
    Dim a1 As NPointF
    Dim a2 As NPointF
    Dim b1 As NPointF
    Dim b2 As NPointF
    Dim intersectionPoint As NPointF
    Dim value As LineSegmentsRelation
     
    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 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