Struct scattering::fields::Fields [] [src]

pub struct Fields {
    pub e: (Vec2, Vec2, Vec2),
    pub b: (f64, f64, f64),
    pub omega: (f64, f64, f64),
    pub phi: f64,
}

Electromagnetic fields

Fields

e

Amplitudes of constant, first and second wave electric fields

b

Amplitudes of z-component constant, first and second wave magnetic fields

omega

Frequences of waves. First value is unused and exists for consistency

phi

Methods

impl Fields

fn new(e: (Vec2, Vec2, Vec2), b: (f64, f64, f64), omega: (f64, f64), phi: f64) -> Fields

fn zero() -> Fields

Trait Implementations

Derived Implementations

impl Clone for Fields

fn clone(&self) -> Fields

1.0.0fn clone_from(&mut self, source: &Self)