Tests whether a triangle and a plane intersect.
PlaneIntersectionType Intersects(
XMVECTOR V0,
XMVECTOR V1,
XMVECTOR V2,
GXMVECTOR Plane
)
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.
Type: PlaneIntersectionType
A PlaneIntersectionType value indicating whether the triangle intersects the plane.
Note
TriangleTests::Intersectsis 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.
Header: Declared in directxcollision.h.