Struct noise_functions::Frequency

source ·
pub struct Frequency<Noise> {
    pub base: Noise,
    pub frequency: f32,
}

Fields§

§base: Noise§frequency: f32

Trait Implementations§

source§

impl<const DIM: usize, Noise> Sample<DIM> for Frequency<Noise>
where Noise: Sample<DIM, [f32; DIM]>,

source§

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

source§

impl<const DIM: usize, const LANES: usize, Noise> Sample<DIM, Simd<f32, LANES>> for Frequency<Noise>
where 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

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

impl<Noise> UnwindSafe for Frequency<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, 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.