1.3.49
 
Loading...
Searching...
No Matches
CollisionDetection::HitResult Struct Reference

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.
 

Detailed Description

Structure representing the result of a ray-primitive intersection.

Definition at line 105 of file CollisionDetection.h.

Constructor & Destructor Documentation

◆ HitResult()

CollisionDetection::HitResult::HitResult ( )
inline

Definition at line 113 of file CollisionDetection.h.

Field Documentation

◆ distance

float CollisionDetection::HitResult::distance

Distance to intersection point (only valid if hit = true)

Definition at line 107 of file CollisionDetection.h.

◆ hit

bool CollisionDetection::HitResult::hit

True if ray intersected with a primitive.

Definition at line 106 of file CollisionDetection.h.

◆ intersection_point

helios::vec3 CollisionDetection::HitResult::intersection_point

World coordinates of intersection (only valid if hit = true)

Definition at line 109 of file CollisionDetection.h.

◆ normal

helios::vec3 CollisionDetection::HitResult::normal

Surface normal at intersection (only valid if hit = true)

Definition at line 110 of file CollisionDetection.h.

◆ path_length

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.

◆ primitive_UUID

uint CollisionDetection::HitResult::primitive_UUID

UUID of intersected primitive (only valid if hit = true)

Definition at line 108 of file CollisionDetection.h.


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