noise_functions

Trait Sample2

Source
pub trait Sample2 {
    // Required method
    fn sample2(&self, point: impl Into<[f32; 2]>) -> f32;
}
Expand description

Helper trait that provides sample2 as a shorthand for Sample<2, [f32; 2]>::sample.

It also works for any impl Into<[f32; 2]>.

Required Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Noise> Sample2 for Noise
where Noise: Sample<2, [f32; 2]>,