Structure representing the result of a ray-primitive intersection. More...
#include <CollisionDetection.h>
Data Fields | |
| bool | hit |
| True if ray intersected with a primitive. | |
| float | distance |
| Distance to intersection point (only valid if hit = true) | |
| uint | primitive_UUID |
| UUID of intersected primitive (only valid if hit = true) | |
| helios::vec3 | intersection_point |
| World coordinates of intersection (only valid if hit = true) | |
| helios::vec3 | normal |
| Surface normal at intersection (only valid if hit = true) | |
| float | path_length |
| Unobstructed path length through voxel (t_max - max(0, t_min)) for LiDAR processing. | |
Structure representing the result of a ray-primitive intersection.
Definition at line 105 of file CollisionDetection.h.
|
inline |
Definition at line 113 of file CollisionDetection.h.
| float CollisionDetection::HitResult::distance |
Distance to intersection point (only valid if hit = true)
Definition at line 107 of file CollisionDetection.h.
| bool CollisionDetection::HitResult::hit |
True if ray intersected with a primitive.
Definition at line 106 of file CollisionDetection.h.
| helios::vec3 CollisionDetection::HitResult::intersection_point |
World coordinates of intersection (only valid if hit = true)
Definition at line 109 of file CollisionDetection.h.
| helios::vec3 CollisionDetection::HitResult::normal |
Surface normal at intersection (only valid if hit = true)
Definition at line 110 of file CollisionDetection.h.
| float CollisionDetection::HitResult::path_length |
Unobstructed path length through voxel (t_max - max(0, t_min)) for LiDAR processing.
Definition at line 111 of file CollisionDetection.h.
| uint CollisionDetection::HitResult::primitive_UUID |
UUID of intersected primitive (only valid if hit = true)
Definition at line 108 of file CollisionDetection.h.