pub fn cw_periodic_to_pw(
mode: Mode,
vector: [Complex; 3],
pol: u8,
period: f64,
) -> Result<Complex>Expand description
Amplitude of the plane wave vector = (kx, ky, kz) that the cylindrical mode mode
of a 1D array along x with lattice period radiates.
The normal wavenumber is ky or -ky, whichever has a positive imaginary part or,
when real, is nonnegative. A kz that differs from the mode’s kz in any bit gives
zero, as in treams.
Upstream: treams.cw.periodic_to_pw.
Differences: a channel at a diffraction threshold (ky = 0) gives an error, where
treams replaces ky by 1e-20 (1 + i).