Celeritas
0.5.0-86+4a8eea4
|
Sample an exiting direction from a polar cosine and incident direction. More...
#include <InteractionUtils.hh>
Public Member Functions | |
template<class Engine > | |
CELER_FUNCTION Real3 | operator() (Engine &rng) |
Public Attributes | |
real_type | costheta |
Real3 const & | direction |
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.