polarization_jet

Function polarization_jet 

Source
pub(crate) fn polarization_jet<const N: usize>(
    vector: [Complex; 3],
    pol: u8,
    helicity: bool,
) -> Result<[Jet<N>; 3]>
Expand description

The polarization vector of a plane wave with wavevector vector, as jets in the wavevector components.

M is i (ky, -kx, 0) / transverse and N is (-kx kz, -ky kz, transverse^2) / (k transverse), as upstream vpw_M and vpw_N; helicity combines them as polarized_wave does. On the z axis M is (0, -i, 0) and N is (-kz / sqrt(kz^2), 0, 0), using the same principal norm as off the axis.