Struct noise_functions::CellDistance
source · pub struct CellDistance;
Implementations§
source§impl CellDistance
impl CellDistance
sourcepub const fn jitter(self, jitter: f32) -> Jitter<Self>
pub const fn jitter(self, jitter: f32) -> Jitter<Self>
Multiplies jitter by the provided value.
pub const fn seed(self, seed: i32) -> Seeded<Self>
pub const fn frequency(self, frequency: f32) -> Frequency<Self>
sourcepub const fn fbm(self, octaves: u32, gain: f32, lacunarity: f32) -> Fbm<Self>
pub const fn fbm(self, octaves: u32, gain: f32, lacunarity: f32) -> Fbm<Self>
This function is const
if the feature nightly-const-fn-float
is enabled.
sourcepub const fn fbm_weighted(
self,
octaves: u32,
gain: f32,
lacunarity: f32,
weighted_strength: f32
) -> FbmWeighted<Self>
pub const fn fbm_weighted( self, octaves: u32, gain: f32, lacunarity: f32, weighted_strength: f32 ) -> FbmWeighted<Self>
This function is const
if the feature nightly-const-fn-float
is enabled.
sourcepub const fn ridged(
self,
octaves: u32,
gain: f32,
lacunarity: f32
) -> Ridged<Self>
pub const fn ridged( self, octaves: u32, gain: f32, lacunarity: f32 ) -> Ridged<Self>
This function is const
if the feature nightly-const-fn-float
is enabled.
sourcepub const fn ridged_weighted(
self,
octaves: u32,
gain: f32,
lacunarity: f32,
weighted_strength: f32
) -> RidgedWeighted<Self>
pub const fn ridged_weighted( self, octaves: u32, gain: f32, lacunarity: f32, weighted_strength: f32 ) -> RidgedWeighted<Self>
This function is const
if the feature nightly-const-fn-float
is enabled.
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 Hash for CellDistance
impl Hash for CellDistance
source§impl PartialEq for CellDistance
impl PartialEq for CellDistance
source§fn eq(&self, other: &CellDistance) -> bool
fn eq(&self, other: &CellDistance) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CellDistance
impl Eq 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