Celeritas 0.6.0-dev.115+3b60a5fd
Loading...
Searching...
No Matches
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 constdirection
 

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: