pub struct OpenSimplex2s;
Expand description
2/3/4 dimensional OpenSimplex2 noise. Smooth variant.
You can improve the visual isotropy for certain orientations using the improve_*
methods
provided by the OpenSimplexNoise
trait.
Trait Implementations§
Source§impl Clone for OpenSimplex2s
impl Clone for OpenSimplex2s
Source§fn clone(&self) -> OpenSimplex2s
fn clone(&self) -> OpenSimplex2s
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OpenSimplex2s
impl Debug for OpenSimplex2s
Source§impl Default for OpenSimplex2s
impl Default for OpenSimplex2s
Source§fn default() -> OpenSimplex2s
fn default() -> OpenSimplex2s
Returns the “default value” for a type. Read more
Source§impl Noise for OpenSimplex2s
impl Noise for OpenSimplex2s
Source§fn seed(self, seed: i32) -> Seeded<Self>where
Self: Sized,
fn seed(self, seed: i32) -> Seeded<Self>where
Self: Sized,
Sets a seed to be sampled with. Read more
Source§fn frequency(self, frequency: f32) -> Frequency<Self>where
Self: Sized,
fn frequency(self, frequency: f32) -> Frequency<Self>where
Self: Sized,
Modifies a noise with a frequency multiplier. Read more
Source§fn ridged(self) -> Ridged<Self>where
Self: Sized,
fn ridged(self) -> Ridged<Self>where
Self: Sized,
Modifies a noise to create a peak at 0. Read more
Source§fn triangle_wave(self, frequency: f32) -> TriangleWave<Self>where
Self: Sized,
fn triangle_wave(self, frequency: f32) -> TriangleWave<Self>where
Self: Sized,
Applies a triangle wave to the output of a base noise function. Read more
Source§impl OpenSimplexNoise for OpenSimplex2s
impl OpenSimplexNoise for OpenSimplex2s
Source§fn improve2_x(self) -> Improve2X<Self>where
Self: Sized,
fn improve2_x(self) -> Improve2X<Self>where
Self: Sized,
Improves 2D orientation with Y pointing down the main diagonal. Read more
Source§fn improve3_xy(self) -> Improve3Xy<Self>where
Self: Sized,
fn improve3_xy(self) -> Improve3Xy<Self>where
Self: Sized,
Improves 3D orientation for better visual isotropy in (X, Y). Read more
Source§fn improve3_xz(self) -> Improve3Xz<Self>where
Self: Sized,
fn improve3_xz(self) -> Improve3Xz<Self>where
Self: Sized,
Improves 3D orientation for better visual isotropy in (X, Z). Read more
Source§fn improve4_xyz(self) -> Improve4Xyz<Self>where
Self: Sized,
fn improve4_xyz(self) -> Improve4Xyz<Self>where
Self: Sized,
Improves 4D orientation so XYZ is oriented like the default 3D noise
and W for an extra degree of freedom. W repeats eventually. Read more
Source§fn improve4_xyz_xy(self) -> Improve4XyzXy<Self>where
Self: Sized,
fn improve4_xyz_xy(self) -> Improve4XyzXy<Self>where
Self: Sized,
Improves 4D orientation so XYZ is oriented like the 3D
improve_xy
noise
and W for an extra degree of freedom. W repeats eventually. Read moreSource§fn improve4_xyz_xz(self) -> Improve4XyzXz<Self>where
Self: Sized,
fn improve4_xyz_xz(self) -> Improve4XyzXz<Self>where
Self: Sized,
Improves 4D orientation so XYZ is oriented like the 3D
improve_xz
noise
and W for an extra degree of freedom. W repeats eventually. Read moreSource§fn improve4_xy_zw(self) -> Improve4XyZw<Self>where
Self: Sized,
fn improve4_xy_zw(self) -> Improve4XyZw<Self>where
Self: Sized,
Improves 4D orientation so XY and ZW form orthogonal triangular-based planes. Read more
Source§impl PartialEq for OpenSimplex2s
impl PartialEq for OpenSimplex2s
Source§impl SampleWithSeed<2> for OpenSimplex2s
impl SampleWithSeed<2> for OpenSimplex2s
Source§impl SampleWithSeed<2, Simd<f32, 2>> for OpenSimplex2s
Available on crate feature nightly-simd
only.
impl SampleWithSeed<2, Simd<f32, 2>> for OpenSimplex2s
Available on crate feature
nightly-simd
only.Source§impl SampleWithSeed<3> for OpenSimplex2s
impl SampleWithSeed<3> for OpenSimplex2s
Source§impl SampleWithSeed<3, Simd<f32, 4>> for OpenSimplex2s
Available on crate feature nightly-simd
only.
impl SampleWithSeed<3, Simd<f32, 4>> for OpenSimplex2s
Available on crate feature
nightly-simd
only.Source§impl SampleWithSeed<4> for OpenSimplex2s
impl SampleWithSeed<4> for OpenSimplex2s
Source§impl SampleWithSeed<4, Simd<f32, 4>> for OpenSimplex2s
Available on crate feature nightly-simd
only.
impl SampleWithSeed<4, Simd<f32, 4>> for OpenSimplex2s
Available on crate feature
nightly-simd
only.impl Copy for OpenSimplex2s
impl Eq for OpenSimplex2s
impl StructuralPartialEq for OpenSimplex2s
Auto Trait Implementations§
impl Freeze for OpenSimplex2s
impl RefUnwindSafe for OpenSimplex2s
impl Send for OpenSimplex2s
impl Sync for OpenSimplex2s
impl Unpin for OpenSimplex2s
impl UnwindSafe for OpenSimplex2s
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more