Struct noise_functions::OpenSimplex2s
source · pub struct OpenSimplex2s;
Implementations§
source§impl OpenSimplex2s
impl OpenSimplex2s
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.
source§impl OpenSimplex2s
impl OpenSimplex2s
sourcepub const fn improve3_xy(self) -> Improve3Xy<Self>
pub const fn improve3_xy(self) -> Improve3Xy<Self>
Improves 3D orientation for the XY
plane.
sourcepub const fn improve3_xz(self) -> Improve3Xz<Self>
pub const fn improve3_xz(self) -> Improve3Xz<Self>
Improves 3D orientation for the XZ
plane.
Trait Implementations§
source§impl Clone for OpenSimplex2s
impl Clone for OpenSimplex2s
source§fn clone(&self) -> OpenSimplex2s
fn clone(&self) -> OpenSimplex2s
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 OpenSimplex2s
impl Debug for OpenSimplex2s
source§impl Hash for OpenSimplex2s
impl Hash for OpenSimplex2s
source§impl PartialEq for OpenSimplex2s
impl PartialEq for OpenSimplex2s
source§fn eq(&self, other: &OpenSimplex2s) -> bool
fn eq(&self, other: &OpenSimplex2s) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for OpenSimplex2s
impl Eq for OpenSimplex2s
impl StructuralPartialEq for OpenSimplex2s
Auto Trait Implementations§
impl Freeze for OpenSimplex2s
impl RefUnwindSafe for OpenSimplex2s
impl Send for OpenSimplex2s
impl Sync for OpenSimplex2s
impl Unpin for OpenSimplex2s
impl UnwindSafe for OpenSimplex2s
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