Struct noise::Worley [] [src]

pub struct Worley<T> {
    pub seed: usize,
    pub range_function: RangeFunction,
    pub enable_range: bool,
    pub frequency: T,
    pub displacement: T,
    // some fields omitted
}

Noise module that outputs Worley noise.

Fields

Seed.

Specifies the range function to use when calculating the boundaries of the cell.

Determines if the distance from the nearest seed point is applied to the output value.

Frequency of the seed points.

Scale of the random displacement to apply to each cell.

The noise module assigns each Worley cell a random constant value from a value noise function. The displacement value controls the range random values to assign to each cell. The range of random values is +/- the displacement value.

Methods

impl<T> Worley<T> where
    T: Float
[src]

Sets the range function used by the Worley cells.

Enables or disables applying the distance from the nearest seed point to the output value.

Sets the frequency of the seed points.

Trait Implementations

impl<T: Clone> Clone for Worley<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for Worley<T>
[src]

impl<T: Debug> Debug for Worley<T>
[src]

Formats the value using the given formatter.

impl<T> Seedable for Worley<T>
[src]

Sets the seed value used by the Worley cells.

impl<T: Float> NoiseModule<Point2<T>> for Worley<T>
[src]

impl<T: Float> NoiseModule<Point3<T>> for Worley<T>
[src]

impl<T: Float> NoiseModule<Point4<T>> for Worley<T>
[src]