Struct noise_functions::CellDistanceSq
source · pub struct CellDistanceSq;
Expand description
2/3 dimensional noise of the squared distance to the closest cell
Implementations§
source§impl CellDistanceSq
impl CellDistanceSq
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.
Trait Implementations§
source§impl Clone for CellDistanceSq
impl Clone for CellDistanceSq
source§fn clone(&self) -> CellDistanceSq
fn clone(&self) -> CellDistanceSq
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 CellDistanceSq
impl Debug for CellDistanceSq
source§impl PartialEq for CellDistanceSq
impl PartialEq for CellDistanceSq
source§fn eq(&self, other: &CellDistanceSq) -> bool
fn eq(&self, other: &CellDistanceSq) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CellDistanceSq
impl Eq for CellDistanceSq
impl StructuralPartialEq for CellDistanceSq
Auto Trait Implementations§
impl Freeze for CellDistanceSq
impl RefUnwindSafe for CellDistanceSq
impl Send for CellDistanceSq
impl Sync for CellDistanceSq
impl Unpin for CellDistanceSq
impl UnwindSafe for CellDistanceSq
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