Struct noise::Select [] [src]

pub struct Select<Source1, Source2, Control, T> {
    pub source1: Source1,
    pub source2: Source2,
    pub control: Control,
    pub lower_bound: T,
    pub upper_bound: T,
    pub edge_falloff: T,
}

Noise module that outputs the value selected from one of two source modules chosen by the output value from a control module.

Fields

Outputs a value.

Outputs a value.

Determines the value to select. If the output value from the control module is within a range of values know as the selection range, this noise module outputs the value from source2. Otherwise, this noise module outputs the value from source1.

Lower bound of the selection range. Default is 0.0.

Upper bound of the selection range. Default is 1.0.

Edge-falloff value. Default is 0.0.

Methods

impl<Source1, Source2, Control, T> Select<Source1, Source2, Control, T> where
    T: Float
[src]

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<Source1: Copy, Source2: Copy, Control: Copy, T: Copy> Copy for Select<Source1, Source2, Control, T>
[src]

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

Formats the value using the given formatter.

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