Struct scattering::boltzmann::BoltzmannDistrib [] [src]

pub struct BoltzmannDistrib<'a, T: 'a + Material> {
    // some fields omitted
}

Methods

impl<'a, T: 'a + Material> BoltzmannDistrib<'a, T>

fn new(temperature: f64, m: &T) -> BoltzmannDistrib<T>

Create new BoltzmannDistrib object for given material and temperature

fn make_dist(&self, seed: u32, n: usize) -> Vec<Vec2>

Make ensemble of n particles with Boltzmann distribution