Click or drag to resize

UtilTriangleIntersectsTriangle Method

Do two triangles intersect?

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

Parameters

U1  Vector3
First vertex of second triangle.
U2  Vector3
Second vertex of second triangle.
U3  Vector3
Third vertex of second triangle.
V1  Vector3
First vertex of second triangle.
V2  Vector3
Second vertex of second triangle.
V3  Vector3
Third vertex of second triangle.

Return Value

Boolean
true if they intersect, false otherwise.
See Also