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
source1: Source1
Outputs a value.
source2: Source2
Outputs a value.
control: Control
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: T
Lower bound of the selection range. Default is 0.0.
upper_bound: T
Upper bound of the selection range. Default is 1.0.
edge_falloff: T
Edge-falloff value. Default is 0.0.
Methods
impl<Source1, Source2, Control, T> Select<Source1, Source2, Control, T> where
T: Float,
[src]
T: Float,
fn new(
source1: Source1,
source2: Source2,
control: Control
) -> Select<Source1, Source2, Control, T>
source1: Source1,
source2: Source2,
control: Control
) -> Select<Source1, Source2, Control, T>
fn set_bounds(self, lower: T, upper: T) -> Select<Source1, Source2, Control, T>
fn set_edge_falloff(self, falloff: T) -> Select<Source1, Source2, Control, T>
Trait Implementations
impl<Source1: Clone, Source2: Clone, Control: Clone, T: Clone> Clone for Select<Source1, Source2, Control, T>
[src]
fn clone(&self) -> Select<Source1, Source2, Control, T>
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: 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]
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]
Source1: NoiseModule<T, Output = U>,
Source2: NoiseModule<T, Output = U>,
Control: NoiseModule<T, Output = U>,
T: Copy,
U: Float,