Struct noise::ScaleBias [] [src]

pub struct ScaleBias<'a, T: 'a> {
    pub source: &'a NoiseFn<T>,
    pub scale: f64,
    pub bias: f64,
}

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

The function retrieves the output value from the source function, 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 function. The default value is 1.0.

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

Methods

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

[src]

[src]

[src]

Trait Implementations

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

[src]

Auto Trait Implementations

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

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