Enum noise::RangeFunction [] [src]

pub enum RangeFunction {
    Euclidean,
    EuclideanSquared,
    Manhattan,
    Chebyshev,
    Quadratic,
}

Set of distance functions that can be used in the Worley noise function.

Variants

The standard linear distance. Expensive to compute because it requires square root calculations.

Same as Euclidean, but without the square root calculations. Distance results will be smaller, however, but hash patterns will be the same.

Measured by only moving in straight lines along the axes. Diagonal movement is not allowed, which leads to increased distances.

Measured by taking the largest distance along any axis as the total distance. Since this eliminates all but one dimension, it results in significantly shorter distances and produces regions where the distances are uniform.

Experimental function where all values are multiplied together and then added up like a quadratic equation.

Trait Implementations

impl Clone for RangeFunction
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for RangeFunction
[src]

impl Debug for RangeFunction
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for RangeFunction

impl Sync for RangeFunction