update_cdir | R Documentation |
Rotates the reference frame of scattering to the reference frame of the photon package previous direction.
update_cdir(psi, phi, cdir)
psi |
Polar scattering angle (radians), [0,pi]. |
phi |
Azimuthal scattering angle (radians), [0,2*pi]. |
cdir |
Directional cosines (unitless; dx/dl, dy/dl, dz/dl). |
A vector of length 3 containing the new travelling directional cosines (dx/dl, dy/dl, dz/dl) of the photon package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.