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 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

Default is 3.0

[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]

Specifies how many adjacent cells should be included in the calculation

A higher radius reduces the amount of possible errors but slows down sampling of individual points

Shouldn't affect performance too much when iterating over a lot of points since the values get cached anyway

Default is 1

[src]

Calculates the noise value for the given point