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
source1: Source1
Outputs one of the values to blend.
source2: Source2
Outputs one of the values to blend.
control: Control
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]
fn clone(&self) -> Blend<Source1, Source2, Control>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<Source1: Debug, Source2: Debug, Control: Debug> Debug for Blend<Source1, Source2, Control>
[src]
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]
Source1: NoiseModule<T, Output = U>,
Source2: NoiseModule<T, Output = U>,
Control: NoiseModule<T, Output = U>,
T: Copy,
U: Float,