Celeritas  0.5.0-56+6b053cd
Public Member Functions | Public Attributes | List of all members
celeritas::ExitingDirectionSampler Struct Reference

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
 

Detailed Description

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.


The documentation for this struct was generated from the following file: