Trait noise_functions::Sample2

source ·
pub trait Sample2 {
    // Required method
    fn sample2(&self, pos: 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, pos: impl Into<[f32; 2]>) -> f32

Object Safety§

This trait is not object safe.

Implementors§

source§

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