Struct noise_functions::PingPongWeighted

source ·
pub struct PingPongWeighted<Noise> {
    pub base: Noise,
    pub octaves: u32,
    pub gain: f32,
    pub lacunarity: f32,
    pub fractal_bounding: f32,
    pub strength: f32,
    pub weighted_strength: f32,
}

Fields§

§base: Noise§octaves: u32§gain: f32§lacunarity: f32§fractal_bounding: f32§strength: f32§weighted_strength: f32

Implementations§

source§

impl<Noise> PingPongWeighted<Noise>

source

pub const fn seed(self, seed: i32) -> Seeded<Self>

source

pub const fn frequency(self, frequency: f32) -> Frequency<Self>

Trait Implementations§

source§

impl<Noise: Clone> Clone for PingPongWeighted<Noise>

source§

fn clone(&self) -> PingPongWeighted<Noise>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<Noise: Debug> Debug for PingPongWeighted<Noise>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<Noise, const DIM: usize> Sample<DIM> for PingPongWeighted<Noise>
where for<'a> Seeded<&'a Noise>: Sample<DIM, [f32; DIM]>,

source§

fn sample(&self, pos: [f32; DIM]) -> f32

source§

impl<Noise, const DIM: usize, const LANES: usize> Sample<DIM, Simd<f32, LANES>> for PingPongWeighted<Noise>
where for<'a> Seeded<&'a Noise>: Sample<DIM, Simd<f32, LANES>>, LaneCount<LANES>: SupportedLaneCount,

Available on crate feature nightly-simd only.
source§

fn sample(&self, pos: Simd<f32, LANES>) -> f32

source§

impl<Noise: Copy> Copy for PingPongWeighted<Noise>

Auto Trait Implementations§

§

impl<Noise> Freeze for PingPongWeighted<Noise>
where Noise: Freeze,

§

impl<Noise> RefUnwindSafe for PingPongWeighted<Noise>
where Noise: RefUnwindSafe,

§

impl<Noise> Send for PingPongWeighted<Noise>
where Noise: Send,

§

impl<Noise> Sync for PingPongWeighted<Noise>
where Noise: Sync,

§

impl<Noise> Unpin for PingPongWeighted<Noise>
where Noise: Unpin,

§

impl<Noise> UnwindSafe for PingPongWeighted<Noise>
where Noise: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Noise> Sample2 for Noise
where Noise: Sample<2>,

source§

fn sample2(&self, pos: impl Into<[f32; 2]>) -> f32

source§

impl<Noise> Sample2a for Noise
where Noise: Sample<2, Simd<f32, 2>>,

source§

fn sample2a(&self, pos: impl Into<Simd<f32, 2>>) -> f32

Available on crate feature nightly-simd only.
source§

impl<Noise> Sample3 for Noise
where Noise: Sample<3>,

source§

fn sample3(&self, pos: impl Into<[f32; 3]>) -> f32

source§

impl<Noise> Sample3a for Noise
where Noise: Sample<3, Simd<f32, 4>>,

source§

fn sample3a(&self, pos: impl Into<Simd<f32, 4>>) -> f32

Available on crate feature nightly-simd only.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.