Struct tcod::noise::Noise
[−]
[src]
pub struct Noise { /* fields omitted */ }
Noise object encapsulates a noise generator.
Methods
impl Noise
[src]
fn init_with_dimensions(dimensions: u32) -> NoiseInitializer
Return an instance of NoiseInitializer which is used to customize the creation of Noise object.
fn set_type(&self, noise_type: NoiseType)
fn get<T: AsMut<[f32]>>(&self, coords: T) -> f32
fn get_ex<T: AsMut<[f32]>>(&self, coords: T, noise_type: NoiseType) -> f32
fn get_fbm<T: AsMut<[f32]>>(&self, coords: T, octaves: u32) -> f32
fn get_fbm_ex<T: AsMut<[f32]>>(&self,
coords: T,
octaves: u32,
noise_type: NoiseType)
-> f32
coords: T,
octaves: u32,
noise_type: NoiseType)
-> f32
fn get_turbulence<T: AsMut<[f32]>>(&self, coords: T, octaves: u32) -> f32
fn get_turbulence_ex<T: AsMut<[f32]>>(&self,
coords: T,
octaves: u32,
noise_type: NoiseType)
-> f32
coords: T,
octaves: u32,
noise_type: NoiseType)
-> f32