CortidQCT  1.2.2.52
RayMeshIntersection.h
Go to the documentation of this file.
1 
12 #pragma once
13 
14 #include "Mesh.h"
15 #include "Padding.h"
16 
17 #include <limits>
18 
19 namespace CortidQCT {
20 
21 template <class T> struct alignas(8) RayMeshIntersection {
23  Position position;
24  T signedDistance = std::numeric_limits<T>::infinity();
26  CQCT_PADDING(sizeof(Position) + sizeof(T), 8);
27 };
28 
29 } // namespace CortidQCT
Name namespace for CortidQCT library.
Definition: CortidQCT.h:23
In this header the Padding helper type is defined.
Include file defining the Mesh data type.
Definition: RayMeshIntersection.h:21
CQCT_PADDING(sizeof(Position)+sizeof(T), 8)
Add explicit padding to ensure copatibility with C.