|  | ReactPhysics3D
    v0.10.2
    C++ Physics engine library | 
This structure represents a 3D ray represented by two points. More...
#include <include/reactphysics3d/mathematics/Ray.h>
| Public Member Functions | |
| Ray (const Vector3 &p1, const Vector3 &p2, decimal maxFrac=decimal(1.0)) | |
| Constructor with arguments. | |
| Public Attributes | |
| Vector3 | point1 | 
| First point of the ray (origin) in world-space. | |
| Vector3 | point2 | 
| Second point of the ray in world-space. | |
| decimal | maxFraction | 
| Maximum fraction value. | |
This structure represents a 3D ray represented by two points.
The ray goes from point1 to point1 + maxFraction * (point2 - point1). The points are specified in world-space coordinates.