Struct noise::Exponent [] [src]

pub struct Exponent<'a, T: 'a> {
    pub source: &'a NoiseFn<T>,
    pub exponent: f64,
}

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

Outputs a value.

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

Methods

impl<'a, T> Exponent<'a, T>
[src]

[src]

[src]

Trait Implementations

impl<'a, T> NoiseFn<T> for Exponent<'a, T>
[src]

[src]

Auto Trait Implementations

impl<'a, T> !Send for Exponent<'a, T>

impl<'a, T> !Sync for Exponent<'a, T>