pub struct OpenSimplex2;
Expand description
2/3/4 dimensional OpenSimplex2 noise. Fast 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 OpenSimplex2
impl Clone for OpenSimplex2
Source§fn clone(&self) -> OpenSimplex2
fn clone(&self) -> OpenSimplex2
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 OpenSimplex2
impl Debug for OpenSimplex2
Source§impl Default for OpenSimplex2
impl Default for OpenSimplex2
Source§fn default() -> OpenSimplex2
fn default() -> OpenSimplex2
Returns the “default value” for a type. Read more
Source§impl Noise for OpenSimplex2
impl Noise for OpenSimplex2
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 OpenSimplex2
impl OpenSimplexNoise for OpenSimplex2
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 OpenSimplex2
impl PartialEq for OpenSimplex2
Source§impl SampleWithSeed<2> for OpenSimplex2
impl SampleWithSeed<2> for OpenSimplex2
Source§impl SampleWithSeed<2, Simd<f32, 2>> for OpenSimplex2
Available on crate feature nightly-simd
only.
impl SampleWithSeed<2, Simd<f32, 2>> for OpenSimplex2
Available on crate feature
nightly-simd
only.Source§impl SampleWithSeed<3> for OpenSimplex2
impl SampleWithSeed<3> for OpenSimplex2
Source§impl SampleWithSeed<3, Simd<f32, 4>> for OpenSimplex2
Available on crate feature nightly-simd
only.
impl SampleWithSeed<3, Simd<f32, 4>> for OpenSimplex2
Available on crate feature
nightly-simd
only.Source§impl SampleWithSeed<4> for OpenSimplex2
impl SampleWithSeed<4> for OpenSimplex2
Source§impl SampleWithSeed<4, Simd<f32, 4>> for OpenSimplex2
Available on crate feature nightly-simd
only.
impl SampleWithSeed<4, Simd<f32, 4>> for OpenSimplex2
Available on crate feature
nightly-simd
only.impl Copy for OpenSimplex2
impl Eq for OpenSimplex2
impl StructuralPartialEq for OpenSimplex2
Auto Trait Implementations§
impl Freeze for OpenSimplex2
impl RefUnwindSafe for OpenSimplex2
impl Send for OpenSimplex2
impl Sync for OpenSimplex2
impl Unpin for OpenSimplex2
impl UnwindSafe for OpenSimplex2
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