Intersects (triangle-plane)

Tests whether a triangle and a plane intersect.

Syntax

PlaneIntersectionType Intersects(
         XMVECTOR V0,
         XMVECTOR V1,
         XMVECTOR V2,
         GXMVECTOR Plane
)  

Parameters

V0
Type: XMVECTOR 

[in] A vector defining a triangle.

V1
Type: XMVECTOR 

[in] A vector defining a triangle.

V2
Type: XMVECTOR 

[in] A vector defining a triangle.

Plane
Type: GXMVECTOR 

[in] A vector defining a plane.

Return value

Type: PlaneIntersectionType 

A PlaneIntersectionType value indicating whether the triangle intersects the plane.

Remarks

Note

TriangleTests::Intersects is new for DirectXMath. This functionality is not available in XNAMath 2.x. Similar functionality for XNAMath can be found in the DirectX SDK Collision sample.

Requirements

Header: Declared in directxcollision.h.