| 1 |
//---------------------------------------------------------------------------// |
| 2 |
// Ray.hh |
| 3 |
//---------------------------------------------------------------------------// |
| 4 |
|
| 5 |
#ifndef mixed_language_src_Ray_hh |
| 6 |
#define mixed_language_src_Ray_hh |
| 7 |
|
| 8 |
#include "Vector_Lite.hh" |
| 9 |
|
| 10 |
namespace tribits_mixed |
| 11 |
{ |
| 12 |
|
| 13 |
//---------------------------------------------------------------------------// |
| 14 |
|
| 15 |
struct Ray |
| 16 |
{ |
| 17 |
// 3-Int Vector (used for 3-dimension indices in XYZ space). |
| 18 |
typedef Vector_Lite<int, 3> Indices; |
| 19 |
|
| 20 |
// 3-Vector defining a point. |
| 21 |
typedef Vector_Lite<double, 3> Space_Vector; |
| 22 |
|
| 23 |
// Mean-free-path along a ray. |
| 24 |
double tau; |
| 25 |
|
| 26 |
// Current position of ray. |
| 27 |
Space_Vector p; |
| 28 |
|
| 29 |
// Current direction of ray. |
| 30 |
Space_Vector dir; |
| 31 |
|
| 32 |
// (I,J,K) cell-indices of ray. |
| 33 |
Indices index; |
| 34 |
}; |
| 35 |
|
| 36 |
} // namespace tribits_mixed |
| 37 |
|
| 38 |
#endif |
| 39 |
|
| 40 |
//---------------------------------------------------------------------------// |
| 41 |
// end of Ray.hh |
| 42 |
//---------------------------------------------------------------------------// |
| 43 |
|