Struct noise::Worley [] [src]

pub struct Worley {
    pub range_function: RangeFunction,
    pub enable_range: bool,
    pub frequency: f64,
    pub displacement: f64,
    // some fields omitted
}

Noise function that outputs Worley noise.

Fields

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 function 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 Worley
[src]

DEFAULT_SEED: u32 = 0

DEFAULT_RANGEFUNCTION: RangeFunction = RangeFunction::Euclidean

DEFAULT_FREQUENCY: f64 = 1.0

DEFAULT_DISPLACEMENT: f64 = 1.0

[src]

[src]

Sets the range function used by the Worley cells.

[src]

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

[src]

Sets the frequency of the seed points.

[src]

Trait Implementations

impl Clone for Worley
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Worley
[src]

impl Debug for Worley
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for Worley
[src]

[src]

Returns the "default value" for a type. Read more

impl Seedable for Worley
[src]

[src]

Sets the seed value used by the Worley cells.

[src]

Getter to retrieve the seed from the function

impl NoiseFn<Point2<f64>> for Worley
[src]

[src]

impl NoiseFn<Point3<f64>> for Worley
[src]

[src]

impl NoiseFn<Point4<f64>> for Worley
[src]

[src]

Auto Trait Implementations

impl Send for Worley

impl Sync for Worley