Struct noise_functions::Perlin
source · pub struct Perlin;
Implementations§
source§impl Perlin
impl Perlin
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.
sourcepub const fn ping_pong(
self,
octaves: u32,
gain: f32,
lacunarity: f32,
strength: f32
) -> PingPong<Self>
pub const fn ping_pong( self, octaves: u32, gain: f32, lacunarity: f32, strength: f32 ) -> PingPong<Self>
This function is const
if the feature nightly-const-fn-float
is enabled.
sourcepub const fn ping_pong_weighted(
self,
octaves: u32,
gain: f32,
lacunarity: f32,
strength: f32,
weighted_strength: f32
) -> PingPongWeighted<Self>
pub const fn ping_pong_weighted( self, octaves: u32, gain: f32, lacunarity: f32, strength: f32, weighted_strength: f32 ) -> PingPongWeighted<Self>
This function is const
if the feature nightly-const-fn-float
is enabled.
Trait Implementations§
source§impl PartialEq for Perlin
impl PartialEq for Perlin
impl Copy for Perlin
impl Eq for Perlin
impl StructuralPartialEq for Perlin
Auto Trait Implementations§
impl Freeze for Perlin
impl RefUnwindSafe for Perlin
impl Send for Perlin
impl Sync for Perlin
impl Unpin for Perlin
impl UnwindSafe for Perlin
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