Intersects(XMVECTOR, XMVECTOR, XMVECTOR, XMVECTOR) method
Tests whether a triangle and a plane intersect.
PlaneIntersectionType Intersects(
XMVECTOR V0,
XMVECTOR V1,
XMVECTOR V2,
XMVECTOR Plane
);
V0
A vector defining a triangle.V1
A vector defining a triangle.V2
A vector defining a triangle.Plane
A vector defining a plane.
A PlaneIntersectionType value indicating whether the triangle intersects the plane.
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.
Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.
Namespace |
DirectX::TriangleTests |
Header |
DirectXCollision.h |