Test whether two triangles intersect.
bool Intersects(
XMVECTOR A0,
XMVECTOR A1,
XMVECTOR A2,
GXMVECTOR B0,
XMVECTOR B1,
XMVECTOR B2
)
A0
Type: XMVECTOR
[in] A vector defining triangle A.
A1
Type: XMVECTOR
[in] A vector defining triangle A.
A2
Type: XMVECTOR
[in] A vector defining triangle A.
B0
Type: GXMVECTOR
[in] A vector defining triangle B.
B1
Type: XMVECTOR
[in] A vector defining triangle B.
B2
Type: XMVECTOR
[in] A vector defining triangle B.
Type: bool
A boolean value indicating whether the triangles intersect.
Typically the six planes passed to this function represent a frustum.
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.