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 worldspace.  
Vector3  point2 
Second point of the ray in worldspace.  
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 worldspace coordinates.