|
DHART
|
#include <RayRequest.h>
Collaboration diagram for HF::RayTracer::RayRequest:Public Member Functions | |
| RayRequest (float x, float y, float z, float dx, float dy, float dz, float Distance=-1) | |
| Constructs a RayRequest from origin points (x, y, z) and destination points (dx, dy, dz), as well as a starting distance for the ray. More... | |
| bool | didHit () |
| Default constructor, empty code block. More... | |
Public Attributes | |
| float | x |
| float | y |
| float | z |
| X, Y, and Z origin points. More... | |
| float | dx |
| float | dy |
| float | dz |
| X, Y and Z direction to cast the ray in. More... | |
| bool | was_cast = false |
| Whether this ray was cast or not. More... | |
| float | distance = -1 |
| Before casting: the maximum distance of the ray. After casting: distance to the hitpoint or -9999 on miss. More... | |
| int | mesh_id = -1 |
| The ID of the hit mesh. More... | |
Definition at line 13 of file RayRequest.h.
| HF::RayTracer::RayRequest::RayRequest | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | dx, | ||
| float | dy, | ||
| float | dz, | ||
| float | Distance = -1 |
||
| ) |
Constructs a RayRequest from origin points (x, y, z) and destination points (dx, dy, dz), as well as a starting distance for the ray.
| x | The x origin coordinate |
| y | The y origin coordinate |
| z | The z origin coordinate |
| dx | The x destination coordinate |
| dy | The y destination coordinate |
| dz | The z destination coordinate |
| Distance | The maximum distance of the ray (upon construction) |
Definition at line 10 of file RayRequest.cpp.
| bool HF::RayTracer::RayRequest::didHit | ( | ) |
Default constructor, empty code block.
Tells if the rayrequest it or not. If true, the hit was successful, false otherwise. Rays that weren't cast yet are considered as not hitting.
>>>Miss
Definition at line 13 of file RayRequest.cpp.
| float HF::RayTracer::RayRequest::distance = -1 |
Before casting: the maximum distance of the ray. After casting: distance to the hitpoint or -9999 on miss.
Definition at line 17 of file RayRequest.h.
| float HF::RayTracer::RayRequest::dx |
Definition at line 15 of file RayRequest.h.
| float HF::RayTracer::RayRequest::dy |
Definition at line 15 of file RayRequest.h.
| float HF::RayTracer::RayRequest::dz |
X, Y and Z direction to cast the ray in.
Definition at line 15 of file RayRequest.h.
| int HF::RayTracer::RayRequest::mesh_id = -1 |
The ID of the hit mesh.
Definition at line 18 of file RayRequest.h.
| bool HF::RayTracer::RayRequest::was_cast = false |
Whether this ray was cast or not.
Definition at line 16 of file RayRequest.h.
| float HF::RayTracer::RayRequest::x |
Definition at line 14 of file RayRequest.h.
| float HF::RayTracer::RayRequest::y |
Definition at line 14 of file RayRequest.h.
| float HF::RayTracer::RayRequest::z |
X, Y, and Z origin points.
Definition at line 14 of file RayRequest.h.