pub struct NoiseFillConfig {
pub noise: NoiseType,
pub frequency: f64,
pub scale: f64,
pub output_range: (f64, f64),
pub threshold: f64,
pub fill_range: Option<(f64, f64)>,
pub octaves: u32,
pub lacunarity: f64,
pub persistence: f64,
}Fields§
§noise: NoiseType§frequency: f64Multiplies sample coordinates; higher = smaller features.
scale: f64Feature size in tiles; higher = larger features (applied as frequency / scale).
output_range: (f64, f64)Output range after normalizing noise to [0, 1].
threshold: f64Fill if value <= threshold (after normalization + range mapping).
fill_range: Option<(f64, f64)>Optional inclusive fill range; overrides threshold when set.
octaves: u32Fractal octaves (1 = base noise).
lacunarity: f64Frequency multiplier between octaves.
persistence: f64Amplitude multiplier between octaves.
Trait Implementations§
Source§impl Clone for NoiseFillConfig
impl Clone for NoiseFillConfig
Source§fn clone(&self) -> NoiseFillConfig
fn clone(&self) -> NoiseFillConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NoiseFillConfig
impl Debug for NoiseFillConfig
Auto Trait Implementations§
impl Freeze for NoiseFillConfig
impl RefUnwindSafe for NoiseFillConfig
impl Send for NoiseFillConfig
impl Sync for NoiseFillConfig
impl Unpin for NoiseFillConfig
impl UnwindSafe for NoiseFillConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more