forked from microsoft/DirectXTK
-
Notifications
You must be signed in to change notification settings - Fork 0
Chuck Walbourn edited this page Nov 3, 2015
·
3 revisions
Ray class modeled after the XNA Game Studio math library.
#include <SimpleMath.h>
using namespace DirectX::SimpleMath;
Ray r; // Create a ray starting at the origin
// pointing in positive Z
Ray( Vector3(1,2,3), Vector3(0,1,0 ); // Creates a ray at 1,2,3
// pointing in positive Y
- position: Position of the ray
- direction: Direction vector of the ray
- Comparison operators:
==and!= - Intersects: Performs intersection tests of the ray against a collision type, a triangle, or a Plane.
All content and source code for this package are subject to the terms of the MIT License.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
- Universal Windows Platform apps
- Windows 8.1 Store apps
- Windows desktop apps
- Windows 7 Service Pack 1
- Windows Vista Service Pack 2 with KB971644
- Windows phone 8.1
- Xbox One
- Visual Studio 2015
- Visual Studio 2013
- Xbox One XDK