Struct noise::Exponent [] [src]

pub struct Exponent<Source, T> {
    pub source: Source,
    pub exponent: T,
}

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

Because most noise modules will output values that range from -1.0 to 1.0, this noise module 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 module. Default is 1.0.

Methods

impl<Source, T> Exponent<Source, T> where
    T: Float
[src]

Trait Implementations

impl<Source, T, U> NoiseModule<T> for Exponent<Source, U> where
    Source: NoiseModule<T, Output = U>,
    T: Copy,
    U: Float
[src]