DHART
Loading...
Searching...
No Matches
RayRequest.h
Go to the documentation of this file.
1
7
8#pragma once
9#include <vector>
10#include <array>
11namespace HF {
12 namespace RayTracer {
13 struct RayRequest {
14 float x, y, z;
15 float dx, dy, dz;
16 bool was_cast = false;
17 float distance = -1;
18 int mesh_id = -1;
19
32
53 RayRequest(float x, float y, float z,
54 float dx, float dy, float dz,
55 float Distance = -1);
56
60
72 // Commenting out empty rayrequest definition
73 //RayRequest() {};
74
79
110 bool didHit();
111 };
112 }
113}
114// Standardized hit struct
Perform human scale analysis on 3D environments.
HF::RayTracer::MultiRT RayTracer
Type of raytracer to be used internally.
float distance
Before casting: the maximum distance of the ray. After casting: distance to the hitpoint or -9999 on ...
Definition: RayRequest.h:17
int mesh_id
The ID of the hit mesh.
Definition: RayRequest.h:18
float dz
X, Y and Z direction to cast the ray in.
Definition: RayRequest.h:15
bool didHit()
Default constructor, empty code block.
Definition: RayRequest.cpp:13
float z
X, Y, and Z origin points.
Definition: RayRequest.h:14
bool was_cast
Whether this ray was cast or not.
Definition: RayRequest.h:16