[][src]Struct worldgen::noise::perlin::PerlinNoise

pub struct PerlinNoise { /* fields omitted */ }

The perlin noise source

Example

let noise = PerlinNoise::new()
    .set(Octaves::of(5));

let value = noise.generate(1.5, 2.5, 15);

Implementations

impl PerlinNoise[src]

pub fn new() -> PerlinNoise[src]

Construct the default perlin source.

The default values are:

octaves = 8
frequency = 1.0
persistence = 0.5
lacunarity = 2.0

pub fn set<T: Property>(self, property: T) -> PerlinNoise[src]

Set a property on the noise source.

Trait Implementations

impl Clone for PerlinNoise[src]

impl Copy for PerlinNoise[src]

impl Debug for PerlinNoise[src]

impl Default for PerlinNoise[src]

impl NoiseProvider for PerlinNoise[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.