Struct noise::Blend [] [src]

pub struct Blend<Source1, Source2, Control> {
    pub source1: Source1,
    pub source2: Source2,
    pub control: Control,
}

Noise module that outputs a weighted blend of the output values from two source modules given the output value supplied by a control module.

This noise module uses linear interpolation to perform the blending operation.

Fields

Outputs one of the values to blend.

Outputs one of the values to blend.

Determines the weight of the blending operation. Negative values weight the blend towards the output value from the source1 module. Positive values weight the blend towards the output value from the source2 module.

Methods

impl<Source1, Source2, Control> Blend<Source1, Source2, Control>
[src]

Trait Implementations

impl<Source1: Clone, Source2: Clone, Control: Clone> Clone for Blend<Source1, Source2, Control>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<Source1: Debug, Source2: Debug, Control: Debug> Debug for Blend<Source1, Source2, Control>
[src]

Formats the value using the given formatter.

impl<Source1, Source2, Control, T, U> NoiseModule<T> for Blend<Source1, Source2, Control> where
    Source1: NoiseModule<T, Output = U>,
    Source2: NoiseModule<T, Output = U>,
    Control: NoiseModule<T, Output = U>,
    T: Copy,
    U: Float
[src]