Struct worley_noise::WorleyNoise [] [src]

pub struct WorleyNoise { /* fields omitted */ }

The base noise struct

Caches already sampled values

Methods

impl WorleyNoise
[src]

[src]

Creates a new noise struct with random permutation arrays

Uses a default density of 3.0 and a cache capacity of 1000

[src]

Initializes the struct with the specified density

[src]

Initializes the struct with the specified cache capacity

[src]

Initializes the struct with the specified density and cache capacity

[src]

Calls permutate_seeded with a random seed

[src]

Randomizes the internal permutation arrays

Might be slow

[src]

Sets the density

Might be slow since it precomputes a lot of stuff

[src]

Sets the function to calculate the distance between feature points

Default is the squared Euclidean distance

[src]

Sets the function to pick the final value from the nearby feature points

The values are in no particular order

Default is the minimum value

[src]

Calculates the noise value for the given point