ReactPhysics3D: reactphysics3d::Ray Struct Reference

| ReactPhysics3D v0.10.2 C++ Physics engine library

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
reactphysics3d::Ray Struct Reference

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.

## Detailed Description

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.

The documentation for this struct was generated from the following file:

- include/reactphysics3d/mathematics/Ray.h