-
Notifications
You must be signed in to change notification settings - Fork 513
Ray
Chuck Walbourn edited this page Apr 26, 2022
·
8 revisions
DirectXTK | SimpleMath |
---|
Ray class modeled after the XNA Game Studio 4 (Microsoft.Xna.Framework.Ray
) 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 [email protected] with any additional questions or comments.
- Universal Windows Platform apps
- Windows desktop apps
- Windows 11
- Windows 10
- Windows 8.1
- Xbox One
- x86
- x64
- ARM64
- Visual Studio 2022
- Visual Studio 2019 (16.11)
- clang/LLVM v12 - v18
- MinGW 12.2, 13.2
- CMake 3.20