pub struct Tileable<Noise> {
pub noise: Noise,
/* private fields */
}
Expand description
Creates a tileable 2D noise from a 4D noise.
The parameters width
and height
describe the size of the repeating tile.
Fields§
§noise: Noise
Implementations§
Trait Implementations§
Source§impl<N> Noise for Tileable<N>
impl<N> Noise for Tileable<N>
fn seed(self, seed: i32) -> Seeded<Self>where
Self: Sized,
fn frequency(self, frequency: f32) -> Frequency<Self>where
Self: Sized,
fn fbm(self, octaves: u32, gain: f32, lacunarity: f32) -> Fbm<Self>where
Self: Sized,
fn ridged(self) -> Ridged<Self>where
Self: Sized,
fn triangle_wave(self, frequency: f32) -> TriangleWave<Self>where
Self: Sized,
fn tileable(self, width: f32, height: f32) -> Tileable<Self>where
Self: Sized,
fn mul_seed(self, value: i32) -> MulSeed<Self>where
Self: Sized,
Source§impl<Noise> Sample<2, Simd<f32, 2>> for Tileable<Noise>
Available on crate feature nightly-simd
only.
impl<Noise> Sample<2, Simd<f32, 2>> for Tileable<Noise>
Available on crate feature
nightly-simd
only.Source§impl<Noise> SampleWithSeed<2> for Tileable<Noise>where
Noise: SampleWithSeed<4>,
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.
impl<Noise> SampleWithSeed<2, Simd<f32, 2>> for Tileable<Noise>where
Noise: SampleWithSeed<4, f32x4>,
Available on crate feature
nightly-simd
only.impl<Noise: Copy> Copy for Tileable<Noise>
impl<Noise> StructuralPartialEq for Tileable<Noise>
Auto Trait Implementations§
impl<Noise> Freeze for Tileable<Noise>where
Noise: Freeze,
impl<Noise> RefUnwindSafe for Tileable<Noise>where
Noise: RefUnwindSafe,
impl<Noise> Send for Tileable<Noise>where
Noise: Send,
impl<Noise> Sync for Tileable<Noise>where
Noise: Sync,
impl<Noise> Unpin for Tileable<Noise>where
Noise: Unpin,
impl<Noise> UnwindSafe for Tileable<Noise>where
Noise: UnwindSafe,
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