Helios++
Helios software for LiDAR simulations
RaySceneIntersection.h
1 #pragma once
2 
3 #include "Primitive.h"
4 #include "PrintUtils.h"
5 #include <ostream>
6 
13 public:
14  // *** ATTRIBUTES *** //
15  // ******************** //
23  glm::dvec3 point;
27  double incidenceAngle = 0;
28 
29  // *** O P E R A T O R S *** //
30  // *************************** //
31  friend std::ostream& operator << (
32  std::ostream &out, RaySceneIntersection &itst
33  ){
34  out << itst.prim << "," << itst.point << "," << itst.incidenceAngle;
35  return out;
36  }
37 };
glm::dvec3 point
Intersection point.
Definition: RaySceneIntersection.h:23
Primitive * prim
Primitive intersected by the ray.
Definition: RaySceneIntersection.h:19
Class representing a the intersection of a ray over a scene made of primitives.
Definition: RaySceneIntersection.h:12
Abstract class defining the common behavior for all primitives.
Definition: Primitive.h:20
double incidenceAngle
Intersection incidence angle.
Definition: RaySceneIntersection.h:27