Utility.TriangleTriangleIntersection2D (Point2D, Point2D, Point2D, Point2D, Point2D, Point2D) Method

Fast Triangle-Triangle 2D intersection between ccw T1[p1,q1,r1] and ccw T2[p2,q1,r2] (From the Devillers and Guigue algorithm).
Public Shared Function TriangleTriangleIntersection2D( _ 
ByVal p1 As Point2D, _ 
ByVal q1 As Point2D, _ 
ByVal r1 As Point2D, _ 
ByVal p2 As Point2D, _ 
ByVal q2 As Point2D, _ 
ByVal r2 As Point2D
) As Boolean
This language is not supported or no code example is available.
public static bool TriangleTriangleIntersection2D( 
Point2D p1
Point2D q1
Point2D r1
Point2D p2
Point2D q2
Point2D r2 
)
This language is not supported or no code example is available.

Parameters

p1
Point2D

First point2D of triangle 1

q1
Point2D

Second point2D of triangle 1

r1
Point2D

Third point2D of triangle 1

p2
Point2D

First point2D of triangle 2

q2
Point2D

Second point2D of triangle 2

r2
Point2D

Third point2D of triangle 2

Return Value

bool

True if the Triangles intersects each other, false otherwise

.NET Framework

Supported in: 4.8

In this article

Definition