pub struct ScaleBias<T, Source, const DIM: usize> {
    pub source: Source,
    pub scale: f64,
    pub bias: f64,
    /* private fields */
}
Expand description

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

source: Source

Outputs a value.

scale: f64

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

bias: f64

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

Implementations

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.