Click or drag to resize

UtilTriangleIntersectsTriangle Method

Do two triangles intersect?

Namespace:  Demo3D.Common
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static bool TriangleIntersectsTriangle(
	Vector3 U1,
	Vector3 U2,
	Vector3 U3,
	Vector3 V1,
	Vector3 V2,
	Vector3 V3
)

Parameters

U1
Type: Microsoft.DirectXVector3
First vertex of second triangle.
U2
Type: Microsoft.DirectXVector3
Second vertex of second triangle.
U3
Type: Microsoft.DirectXVector3
Third vertex of second triangle.
V1
Type: Microsoft.DirectXVector3
First vertex of second triangle.
V2
Type: Microsoft.DirectXVector3
Second vertex of second triangle.
V3
Type: Microsoft.DirectXVector3
Third vertex of second triangle.

Return Value

Type: Boolean
true if they intersect, false otherwise.
See Also