noise_functions

Trait SampleWithSeed

Source
pub trait SampleWithSeed<const DIM: usize, Point = [f32; DIM]>: Sample<DIM, Point> {
    // Required method
    fn sample_with_seed(&self, point: Point, seed: i32) -> f32;
}
Expand description

Trait for sampling noises with a seed.

Required Methods§

Source

fn sample_with_seed(&self, point: Point, seed: i32) -> f32

Implementors§

Source§

impl SampleWithSeed<2> for CellDistance

Source§

impl SampleWithSeed<2> for CellDistanceSq

Source§

impl SampleWithSeed<2> for CellValue

Source§

impl SampleWithSeed<2> for OpenSimplex2

Source§

impl SampleWithSeed<2> for OpenSimplex2s

Source§

impl SampleWithSeed<2> for Perlin

Source§

impl SampleWithSeed<2> for Simplex

Source§

impl SampleWithSeed<2> for Value

Source§

impl SampleWithSeed<2> for ValueCubic

Source§

impl SampleWithSeed<2, Simd<f32, 2>> for CellDistance

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<2, Simd<f32, 2>> for CellDistanceSq

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<2, Simd<f32, 2>> for CellValue

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<2, Simd<f32, 2>> for OpenSimplex2

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<2, Simd<f32, 2>> for OpenSimplex2s

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<2, Simd<f32, 2>> for Perlin

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<2, Simd<f32, 2>> for Simplex

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<2, Simd<f32, 2>> for Value

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<2, Simd<f32, 2>> for ValueCubic

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<3> for CellDistance

Source§

impl SampleWithSeed<3> for CellDistanceSq

Source§

impl SampleWithSeed<3> for CellValue

Source§

impl SampleWithSeed<3> for OpenSimplex2

Source§

impl SampleWithSeed<3> for OpenSimplex2s

Source§

impl SampleWithSeed<3> for Perlin

Source§

impl SampleWithSeed<3> for Simplex

Source§

impl SampleWithSeed<3> for Value

Source§

impl SampleWithSeed<3> for ValueCubic

Source§

impl SampleWithSeed<3, Simd<f32, 4>> for CellDistance

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<3, Simd<f32, 4>> for CellDistanceSq

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<3, Simd<f32, 4>> for CellValue

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<3, Simd<f32, 4>> for OpenSimplex2

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<3, Simd<f32, 4>> for OpenSimplex2s

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<3, Simd<f32, 4>> for Perlin

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<3, Simd<f32, 4>> for Simplex

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<3, Simd<f32, 4>> for Value

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<3, Simd<f32, 4>> for ValueCubic

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<4> for CellDistance

Source§

impl SampleWithSeed<4> for CellDistanceSq

Source§

impl SampleWithSeed<4> for CellValue

Source§

impl SampleWithSeed<4> for OpenSimplex2

Source§

impl SampleWithSeed<4> for OpenSimplex2s

Source§

impl SampleWithSeed<4> for Perlin

Source§

impl SampleWithSeed<4> for Simplex

Source§

impl SampleWithSeed<4> for Value

Source§

impl SampleWithSeed<4, Simd<f32, 4>> for CellDistance

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<4, Simd<f32, 4>> for CellDistanceSq

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<4, Simd<f32, 4>> for CellValue

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<4, Simd<f32, 4>> for OpenSimplex2

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<4, Simd<f32, 4>> for OpenSimplex2s

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<4, Simd<f32, 4>> for Perlin

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<4, Simd<f32, 4>> for Simplex

Available on crate feature nightly-simd only.
Source§

impl SampleWithSeed<4, Simd<f32, 4>> for Value

Available on crate feature nightly-simd only.
Source§

impl<N: OpenSimplexNoise> SampleWithSeed<2> for Improve2X<N>

Source§

impl<N: OpenSimplexNoise> SampleWithSeed<2, Simd<f32, 2>> for Improve2X<N>

Available on crate feature nightly-simd only.
Source§

impl<N: OpenSimplexNoise> SampleWithSeed<3> for Improve3Xy<N>

Source§

impl<N: OpenSimplexNoise> SampleWithSeed<3> for Improve3Xz<N>

Source§

impl<N: OpenSimplexNoise> SampleWithSeed<3, Simd<f32, 4>> for Improve3Xy<N>

Available on crate feature nightly-simd only.
Source§

impl<N: OpenSimplexNoise> SampleWithSeed<3, Simd<f32, 4>> for Improve3Xz<N>

Available on crate feature nightly-simd only.
Source§

impl<N: OpenSimplexNoise> SampleWithSeed<4> for Improve4XyZw<N>

Source§

impl<N: OpenSimplexNoise> SampleWithSeed<4> for Improve4Xyz<N>

Source§

impl<N: OpenSimplexNoise> SampleWithSeed<4> for Improve4XyzXy<N>

Source§

impl<N: OpenSimplexNoise> SampleWithSeed<4> for Improve4XyzXz<N>

Source§

impl<N: OpenSimplexNoise> SampleWithSeed<4, Simd<f32, 4>> for Improve4XyZw<N>

Available on crate feature nightly-simd only.
Source§

impl<N: OpenSimplexNoise> SampleWithSeed<4, Simd<f32, 4>> for Improve4Xyz<N>

Available on crate feature nightly-simd only.
Source§

impl<N: OpenSimplexNoise> SampleWithSeed<4, Simd<f32, 4>> for Improve4XyzXy<N>

Available on crate feature nightly-simd only.
Source§

impl<N: OpenSimplexNoise> SampleWithSeed<4, Simd<f32, 4>> for Improve4XyzXz<N>

Available on crate feature nightly-simd only.
Source§

impl<N: SampleWithSeed<2>> SampleWithSeed<2> for Improve3Xy<N>

Source§

impl<N: SampleWithSeed<2>> SampleWithSeed<2> for Improve3Xz<N>

Source§

impl<N: SampleWithSeed<2>> SampleWithSeed<2> for Improve4XyZw<N>

Source§

impl<N: SampleWithSeed<2>> SampleWithSeed<2> for Improve4Xyz<N>

Source§

impl<N: SampleWithSeed<2>> SampleWithSeed<2> for Improve4XyzXy<N>

Source§

impl<N: SampleWithSeed<2>> SampleWithSeed<2> for Improve4XyzXz<N>

Source§

impl<N: SampleWithSeed<2, f32x2>> SampleWithSeed<2, Simd<f32, 2>> for Improve3Xy<N>

Available on crate feature nightly-simd only.
Source§

impl<N: SampleWithSeed<2, f32x2>> SampleWithSeed<2, Simd<f32, 2>> for Improve3Xz<N>

Available on crate feature nightly-simd only.
Source§

impl<N: SampleWithSeed<2, f32x2>> SampleWithSeed<2, Simd<f32, 2>> for Improve4XyZw<N>

Available on crate feature nightly-simd only.
Source§

impl<N: SampleWithSeed<2, f32x2>> SampleWithSeed<2, Simd<f32, 2>> for Improve4Xyz<N>

Available on crate feature nightly-simd only.
Source§

impl<N: SampleWithSeed<2, f32x2>> SampleWithSeed<2, Simd<f32, 2>> for Improve4XyzXy<N>

Available on crate feature nightly-simd only.
Source§

impl<N: SampleWithSeed<2, f32x2>> SampleWithSeed<2, Simd<f32, 2>> for Improve4XyzXz<N>

Available on crate feature nightly-simd only.
Source§

impl<N: SampleWithSeed<3>> SampleWithSeed<3> for Improve2X<N>

Source§

impl<N: SampleWithSeed<3>> SampleWithSeed<3> for Improve4XyZw<N>

Source§

impl<N: SampleWithSeed<3>> SampleWithSeed<3> for Improve4Xyz<N>

Source§

impl<N: SampleWithSeed<3>> SampleWithSeed<3> for Improve4XyzXy<N>

Source§

impl<N: SampleWithSeed<3>> SampleWithSeed<3> for Improve4XyzXz<N>

Source§

impl<N: SampleWithSeed<3, f32x4>> SampleWithSeed<3, Simd<f32, 4>> for Improve2X<N>

Available on crate feature nightly-simd only.
Source§

impl<N: SampleWithSeed<3, f32x4>> SampleWithSeed<3, Simd<f32, 4>> for Improve4XyZw<N>

Available on crate feature nightly-simd only.
Source§

impl<N: SampleWithSeed<3, f32x4>> SampleWithSeed<3, Simd<f32, 4>> for Improve4Xyz<N>

Available on crate feature nightly-simd only.
Source§

impl<N: SampleWithSeed<3, f32x4>> SampleWithSeed<3, Simd<f32, 4>> for Improve4XyzXy<N>

Available on crate feature nightly-simd only.
Source§

impl<N: SampleWithSeed<3, f32x4>> SampleWithSeed<3, Simd<f32, 4>> for Improve4XyzXz<N>

Available on crate feature nightly-simd only.
Source§

impl<N: SampleWithSeed<4>> SampleWithSeed<4> for Improve2X<N>

Source§

impl<N: SampleWithSeed<4>> SampleWithSeed<4> for Improve3Xy<N>

Source§

impl<N: SampleWithSeed<4>> SampleWithSeed<4> for Improve3Xz<N>

Source§

impl<N: SampleWithSeed<4, f32x4>> SampleWithSeed<4, Simd<f32, 4>> for Improve2X<N>

Available on crate feature nightly-simd only.
Source§

impl<N: SampleWithSeed<4, f32x4>> SampleWithSeed<4, Simd<f32, 4>> for Improve3Xy<N>

Available on crate feature nightly-simd only.
Source§

impl<N: SampleWithSeed<4, f32x4>> SampleWithSeed<4, Simd<f32, 4>> for Improve3Xz<N>

Available on crate feature nightly-simd only.
Source§

impl<Noise> SampleWithSeed<2> for Tileable<Noise>
where Noise: SampleWithSeed<4>,

Source§

impl<Noise> SampleWithSeed<2, Simd<f32, 2>> for Tileable<Noise>
where Noise: SampleWithSeed<4, f32x4>,

Available on crate feature nightly-simd only.
Source§

impl<Noise, const DIM: usize> SampleWithSeed<DIM> for Fbm<Noise>
where Noise: SampleWithSeed<DIM>,

Source§

impl<Noise, const DIM: usize> SampleWithSeed<DIM> for MulSeed<Noise>
where Noise: SampleWithSeed<DIM>,

Source§

impl<Noise, const DIM: usize> SampleWithSeed<DIM> for Ridged<Noise>
where Noise: SampleWithSeed<DIM>,

Source§

impl<Noise, const DIM: usize> SampleWithSeed<DIM> for TriangleWave<Noise>
where Noise: SampleWithSeed<DIM>,

Source§

impl<Noise, const DIM: usize> SampleWithSeed<DIM> for Weighted<Fbm<Noise>>
where Noise: SampleWithSeed<DIM>,

Source§

impl<Noise, const DIM: usize, const LANES: usize> SampleWithSeed<DIM, Simd<f32, LANES>> for Fbm<Noise>
where Noise: SampleWithSeed<DIM, Simd<f32, LANES>>, LaneCount<LANES>: SupportedLaneCount,

Available on crate feature nightly-simd only.
Source§

impl<Noise, const DIM: usize, const LANES: usize> SampleWithSeed<DIM, Simd<f32, LANES>> for MulSeed<Noise>
where Noise: SampleWithSeed<DIM, Simd<f32, LANES>>, LaneCount<LANES>: SupportedLaneCount,

Available on crate feature nightly-simd only.
Source§

impl<Noise, const DIM: usize, const LANES: usize> SampleWithSeed<DIM, Simd<f32, LANES>> for Ridged<Noise>
where Noise: SampleWithSeed<DIM, Simd<f32, LANES>>, LaneCount<LANES>: SupportedLaneCount,

Available on crate feature nightly-simd only.
Source§

impl<Noise, const DIM: usize, const LANES: usize> SampleWithSeed<DIM, Simd<f32, LANES>> for TriangleWave<Noise>
where Noise: SampleWithSeed<DIM, Simd<f32, LANES>>, LaneCount<LANES>: SupportedLaneCount,

Available on crate feature nightly-simd only.
Source§

impl<Noise, const DIM: usize, const LANES: usize> SampleWithSeed<DIM, Simd<f32, LANES>> for Weighted<Fbm<Noise>>
where Noise: SampleWithSeed<DIM, Simd<f32, LANES>>, LaneCount<LANES>: SupportedLaneCount,

Available on crate feature nightly-simd only.
Source§

impl<const DIM: usize, Point, F> SampleWithSeed<DIM, Point> for NoiseFn<F, true>
where F: Fn(Point, i32) -> f32,