pub struct Exponent<T, Source, const DIM: usize>where
    Source: NoiseFn<T, DIM>,
{ pub source: Source, pub exponent: f64, /* private fields */ }
Expand description

Noise function that maps the output value from the source function onto an exponential curve.

Because most noise functions will output values that range from -1.0 to 1.0, this noise function first normalizes the output value (the range becomes 0.0 to 1.0), maps that value onto an exponential curve, then rescales that value back to the original range.

Fields

source: Source

Outputs a value.

exponent: f64

Exponent to apply to the output value from the source function. Default is 1.0.

Implementations

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.