Struct noise::ScaleBias [] [src]

pub struct ScaleBias<Source, T> {
    pub source: Source,
    pub scale: T,
    pub bias: T,
}

Noise module that applies a scaling factor and a bias to the output value from the source module.

The module retrieves the output value from the source module, multiplies it with the scaling factor, adds the bias to it, then outputs the value.

Fields

Outputs a value.

Scaling factor to apply to the output value from the source module. The default value is 1.0.

Bias to apply to the scaled output value from the source module. The default value is 0.0.

Methods

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

Trait Implementations

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