|
Celeritas 0.7+e3cce20
|
Sample an exiting direction from a polar cosine and incident direction. More...
#include <InteractionUtils.hh>
Public Member Functions | |
| ExitingDirectionSampler (real_type costheta, Real3 const &direction) | |
| template<class Engine > | |
| Real3 | operator() (Engine &rng) |
Sample an exiting direction from a polar cosine and incident direction.
Combine an already-sampled change in polar cosine (dot product of incident and exiting) with a sampled uniform azimuthal direction, and apply that rotation to the original track's incident direction.