[]Struct rltk::FastNoise

pub struct FastNoise { /* fields omitted */ }

Methods

impl FastNoise

pub fn new() -> FastNoise

Creates a new noise instance, using simplex noise defaults.

pub fn seeded(seed: u64) -> FastNoise

Creates a new noise instance, using simplex noise defaults and specifying a random seed.

pub fn set_seed(&mut self, seed: u64)

Re-seeds the noise system with a new seed.

pub fn get_seed(&self) -> u64

pub fn set_frequency(&mut self, frequency: f32)

pub fn get_frequency(&self) -> f32

pub fn set_interp(&mut self, interp: Interp)

pub fn get_interp(&self) -> Interp

pub fn set_noise_type(&mut self, nt: NoiseType)

pub fn get_noise_type(&self) -> NoiseType

pub fn set_fractal_octaves(&mut self, octaves: i32)

pub fn get_fractal_octaves(&self) -> i32

pub fn set_fractal_lacunarity(&mut self, lacunarity: f32)

pub fn get_fractal_lacunarity(&self) -> f32

pub fn set_fractal_gain(&mut self, gain: f32)

pub fn get_fractal_gain(&self) -> f32

pub fn set_fractal_type(&mut self, fractal_type: FractalType)

pub fn get_fractal_type(&self) -> FractalType

pub fn set_cellular_distance_function(
    &mut self,
    cellular_distance_function: CellularDistanceFunction
)

pub fn get_cellular_distance_function(&self) -> CellularDistanceFunction

pub fn set_cellular_return_type(
    &mut self,
    cellular_return_type: CellularReturnType
)

pub fn get_cellular_return_type(&self) -> CellularReturnType

pub fn get_cellular_distance_indices(&self) -> (i32, i32)

pub fn set_cellular_jitter(&mut self, jitter: f32)

pub fn get_cellular_jitter(&self) -> f32

pub fn set_gradient_perterb_amp(&mut self, gradient_perturb_amp: f32)

pub fn get_gradient_perterb_amp(&self) -> f32

pub fn set_cellular_distance_indices(&mut self, i1: i32, i2: i32)

pub fn index2d_12(&self, offset: u8, x: i32, y: i32) -> u8

pub fn index3d_12(&self, offset: u8, x: i32, y: i32, z: i32) -> u8

pub fn index4d_32(&self, offset: u8, x: i32, y: i32, z: i32, w: i32) -> u8

pub fn index2d_256(&self, offset: u8, x: i32, y: i32) -> u8

pub fn index3d_256(&self, offset: u8, x: i32, y: i32, z: i32) -> u8

pub fn index4d_256(&self, offset: u8, x: i32, y: i32, z: i32, w: i32) -> u8

pub fn get_noise3d(&self, x: f32, y: f32, z: f32) -> f32

pub fn get_noise(&self, x: f32, y: f32) -> f32

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,