Celeritas 0.7.0-dev.80+develop.2dd9b831b
Loading...
Searching...
No Matches
Classes | Functions
SurfacePhysicsUtils.hh File Reference
#include "corecel/math/Algorithms.hh"
#include "corecel/math/ArrayUtils.hh"
#include "celeritas/Types.hh"
This graph shows which files directly or indirectly include this file:

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.
 

Function Documentation

◆ is_entering_surface()

CELER_FUNCTION bool celeritas::optical::is_entering_surface ( Real3 const dir,
Real3 const 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.