Click or drag to resize

UtilTriangleIntersectsPlane Method

Does the supplied triangle intersect the plane.

Namespace:  Demo3D.Common
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static bool TriangleIntersectsPlane(
	Vector3 N,
	Vector3 P,
	Vector3 V1,
	Vector3 V2,
	Vector3 V3
)

Parameters

N
Type: Microsoft.DirectXVector3
Normal to the plane.
P
Type: Microsoft.DirectXVector3
Point on the plane.
V1
Type: Microsoft.DirectXVector3
First vertex of triangle.
V2
Type: Microsoft.DirectXVector3
Second vertex of triangle.
V3
Type: Microsoft.DirectXVector3
Third vertex of triangle.

Return Value

Type: Boolean
True if the triangle intersects the plane (including being co-planar with the plane, or one or two of the vertices being on the plane), false otherwise.
See Also