DHART
|
The result of casting a ray at an object. Contains distance to the hitpoint and the ID of the mesh. More...
#include <raytracer_C.h>
Public Member Functions | |
template<typename N , typename V > | |
void | SetHit (const N &node, const V &direction, float dist, int mid) |
Update this result based on the ray intersection. Similar structures can be created to support different sethit functions. More... | |
Public Attributes | |
float | distance = -1 |
int | meshid = -1 |
The result of casting a ray at an object. Contains distance to the hitpoint and the ID of the mesh.
Definition at line 89 of file raytracer_C.h.
|
inline |
Update this result based on the ray intersection. Similar structures can be created to support different sethit functions.
node | Not used for this structure |
direction | Not used for this structure |
dist | Distance from node to the hit_point |
mid | ID of the hit mesh |
Definition at line 103 of file raytracer_C.h.
float RayResult::distance = -1 |
Definition at line 90 of file raytracer_C.h.
Referenced by SetHit().
int RayResult::meshid = -1 |
Definition at line 91 of file raytracer_C.h.
Referenced by SetHit().