pub struct Seeded<Noise> {
pub noise: Noise,
pub seed: i32,
}
Expand description
Wraps a noise with a seed.
This structs’ Sample
implementation will call sample_with_seed
on the base noise with self.seed
.
Fields§
§noise: Noise
§seed: i32
Trait Implementations§
Source§impl<N> Noise for Seeded<N>
impl<N> Noise for Seeded<N>
Source§fn seed(self, seed: i32) -> Seeded<Self>where
Self: Sized,
fn seed(self, seed: i32) -> Seeded<Self>where
Self: Sized,
Sets a seed to be sampled with. Read more
Source§fn frequency(self, frequency: f32) -> Frequency<Self>where
Self: Sized,
fn frequency(self, frequency: f32) -> Frequency<Self>where
Self: Sized,
Modifies a noise with a frequency multiplier. Read more
Source§fn ridged(self) -> Ridged<Self>where
Self: Sized,
fn ridged(self) -> Ridged<Self>where
Self: Sized,
Modifies a noise to create a peak at 0. Read more
Source§fn triangle_wave(self, frequency: f32) -> TriangleWave<Self>where
Self: Sized,
fn triangle_wave(self, frequency: f32) -> TriangleWave<Self>where
Self: Sized,
Applies a triangle wave to the output of a base noise function. Read more
Source§impl<const DIM: usize, Point, Noise> Sample<DIM, Point> for Seeded<Noise>where
Noise: SampleWithSeed<DIM, Point>,
impl<const DIM: usize, Point, Noise> Sample<DIM, Point> for Seeded<Noise>where
Noise: SampleWithSeed<DIM, Point>,
impl<Noise: Copy> Copy for Seeded<Noise>
impl<Noise: Eq> Eq for Seeded<Noise>
impl<Noise> StructuralPartialEq for Seeded<Noise>
Auto Trait Implementations§
impl<Noise> Freeze for Seeded<Noise>where
Noise: Freeze,
impl<Noise> RefUnwindSafe for Seeded<Noise>where
Noise: RefUnwindSafe,
impl<Noise> Send for Seeded<Noise>where
Noise: Send,
impl<Noise> Sync for Seeded<Noise>where
Noise: Sync,
impl<Noise> Unpin for Seeded<Noise>where
Noise: Unpin,
impl<Noise> UnwindSafe for Seeded<Noise>where
Noise: UnwindSafe,
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