Utility.TriangleTriangleIntersection2D (Double(), Double(), Double(), Double(), Double(), Double()) 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 Double(), _ 
ByVal q1 As Double(), _ 
ByVal r1 As Double(), _ 
ByVal p2 As Double(), _ 
ByVal q2 As Double(), _ 
ByVal r2 As Double() _ 
) As Boolean
This language is not supported or no code example is available.
public static bool TriangleTriangleIntersection2D( 
double[] p1
double[] q1
double[] r1
double[] p2
double[] q2
double[] r2 
)
This language is not supported or no code example is available.

Parameters

p1
double[]

coordinates of the first point2D of triangle 1

q1
double[]

coordinates of the second point2D of triangle 1

r1
double[]

coordinates of the third point2D of triangle 1

p2
double[]

coordinates of the first point2D of triangle 2

q2
double[]

coordinates of the second point2D of triangle 2

r2
double[]

coordinates of the 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