pub struct Select<T, Source1, Source2, Control, const DIM: usize>where
    Source1: NoiseFn<T, DIM>,
    Source2: NoiseFn<T, DIM>,
    Control: NoiseFn<T, DIM>,
{ pub source1: Source1, pub source2: Source2, pub control: Control, pub bounds: (f64, f64), pub falloff: f64, /* private fields */ }
Expand description

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

Fields

source1: Source1

Outputs a value.

source2: Source2

Outputs a value.

control: Control

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

bounds: (f64, f64)

Bounds of the selection range. Default is 0.0 to 1.0.

falloff: f64

Edge falloff value. Default 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.