pub struct CellDistance {
pub jitter: f32,
}
Expand description
2/3/4 dimensional noise of the distance to the closest cell.
Fields§
§jitter: f32
Implementations§
Trait Implementations§
Source§impl Clone for CellDistance
impl Clone for CellDistance
Source§fn clone(&self) -> CellDistance
fn clone(&self) -> CellDistance
Returns a copy 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 CellDistance
impl Debug for CellDistance
Source§impl Default for CellDistance
impl Default for CellDistance
Source§impl Noise for CellDistance
impl Noise for CellDistance
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 PartialEq for CellDistance
impl PartialEq for CellDistance
Source§impl SampleWithSeed<2> for CellDistance
impl SampleWithSeed<2> for CellDistance
Source§impl SampleWithSeed<2, Simd<f32, 2>> for CellDistance
Available on crate feature nightly-simd
only.
impl SampleWithSeed<2, Simd<f32, 2>> for CellDistance
Available on crate feature
nightly-simd
only.Source§impl SampleWithSeed<3> for CellDistance
impl SampleWithSeed<3> for CellDistance
Source§impl SampleWithSeed<3, Simd<f32, 4>> for CellDistance
Available on crate feature nightly-simd
only.
impl SampleWithSeed<3, Simd<f32, 4>> for CellDistance
Available on crate feature
nightly-simd
only.Source§impl SampleWithSeed<4> for CellDistance
impl SampleWithSeed<4> for CellDistance
Source§impl SampleWithSeed<4, Simd<f32, 4>> for CellDistance
Available on crate feature nightly-simd
only.
impl SampleWithSeed<4, Simd<f32, 4>> for CellDistance
Available on crate feature
nightly-simd
only.impl Copy for CellDistance
impl StructuralPartialEq for CellDistance
Auto Trait Implementations§
impl Freeze for CellDistance
impl RefUnwindSafe for CellDistance
impl Send for CellDistance
impl Sync for CellDistance
impl Unpin for CellDistance
impl UnwindSafe for CellDistance
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