pub struct FastNoise { /* private fields */ }
Implementations
impl FastNoise
impl FastNoise
pub fn seeded(seed: u64) -> FastNoise
pub fn seeded(seed: u64) -> FastNoise
Creates a new noise instance, using simplex noise defaults and specifying a random 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
impl RefUnwindSafe for FastNoise
impl Send for FastNoise
impl Sync for FastNoise
impl Unpin for FastNoise
impl UnwindSafe for FastNoise
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more