Struct noise::Clamp [] [src]

pub struct Clamp<Source, T> {
    pub source: Source,
    pub lower_bound: T,
    pub upper_bound: T,
}

Noise module that clamps the output value from the source module to a range of values.

Fields

Outputs a value.

Lower bound of the clamping range. Default is -1.0.

Upper bound of the clamping range. Default is 1.0.

Methods

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

Trait Implementations

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