Struct noise_functions::OpenSimplex2
source · pub struct OpenSimplex2;
Expand description
2/3 dimensional OpenSimplex2 noise. Fast variant.
When sampling in 3 Dimensions you can improve the visual isotropy in a the respective planes via improve_xy
or improve_xz
.
Implementations§
source§impl OpenSimplex2
impl OpenSimplex2
sourcepub const fn improve_xy(self) -> ImproveXy<Self>
pub const fn improve_xy(self) -> ImproveXy<Self>
Improves 3D orientation for the XY
plane.
sourcepub const fn improve_xz(self) -> ImproveXz<Self>
pub const fn improve_xz(self) -> ImproveXz<Self>
Improves 3D orientation for the XZ
plane.
source§impl OpenSimplex2
impl OpenSimplex2
pub const fn seed(self, seed: i32) -> Seeded<Self>
pub const fn frequency(self, frequency: f32) -> Frequency<Self>
sourcepub const fn fbm(self, octaves: u32, gain: f32, lacunarity: f32) -> Fbm<Self>
pub const fn fbm(self, octaves: u32, gain: f32, lacunarity: f32) -> Fbm<Self>
This function is const
if the feature nightly-const-fn-float
is enabled.
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 PartialEq for OpenSimplex2
impl PartialEq for OpenSimplex2
source§fn eq(&self, other: &OpenSimplex2) -> bool
fn eq(&self, other: &OpenSimplex2) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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