update_cdir: Update directional cosines

View source: R/updatecdir.R

update_cdirR Documentation

Update directional cosines

Description

Rotates the reference frame of scattering to the reference frame of the photon package previous direction.

Usage

update_cdir(psi, phi, cdir)

Arguments

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).

Value

A vector of length 3 containing the new travelling directional cosines (dx/dl, dy/dl, dz/dl) of the photon package.


AlexCast/apsfs documentation built on Feb. 1, 2024, 9:48 p.m.