Celeritas 0.7.0-dev.80+develop.2dd9b831b
|
#include "corecel/math/Algorithms.hh"
#include "corecel/math/ArrayUtils.hh"
#include "celeritas/Types.hh"
Classes | |
class | celeritas::optical::EnteringSurfaceNormalSampler< Calculator > |
Sample a valid facet normal by wrapping a roughness calculator. More... | |
Functions | |
CELER_FUNCTION bool | celeritas::optical::is_entering_surface (Real3 const &dir, Real3 const &normal) |
Whether a track is entering the surface defined by the given normal. | |
|
inline |
Whether a track is entering the surface defined by the given normal.
The surface normal convention used in Celeritas optical physics is that the normal direction points opposite the incident track direction. This function makes checks for this condition explicit in the code.