pub struct Frequency<Noise> {
pub noise: Noise,
pub frequency: f32,
}
Expand description
Modifies a noise with a frequency multiplier.
This multiplies the point by the provided frequency
before sampling.
Fields§
§noise: Noise
§frequency: f32
Trait Implementations§
Source§impl<N> Noise for Frequency<N>
impl<N> Noise for Frequency<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, const LANES: usize, Noise> Sample<DIM, Simd<f32, LANES>> for Frequency<Noise>
Available on crate feature nightly-simd
only.
impl<const DIM: usize, const LANES: usize, Noise> Sample<DIM, Simd<f32, LANES>> for Frequency<Noise>
Available on crate feature
nightly-simd
only.impl<Noise: Copy> Copy for Frequency<Noise>
impl<Noise> StructuralPartialEq for Frequency<Noise>
Auto Trait Implementations§
impl<Noise> Freeze for Frequency<Noise>where
Noise: Freeze,
impl<Noise> RefUnwindSafe for Frequency<Noise>where
Noise: RefUnwindSafe,
impl<Noise> Send for Frequency<Noise>where
Noise: Send,
impl<Noise> Sync for Frequency<Noise>where
Noise: Sync,
impl<Noise> Unpin for Frequency<Noise>where
Noise: Unpin,
impl<Noise> UnwindSafe for Frequency<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