Struct noise::Constant
[−]
[src]
pub struct Constant { pub value: f64, }
Noise function that outputs a constant value.
This function takes a input, value, and returns that input for all points, producing a constant-valued field.
This function is not very useful by itself, but can be used as a source function for other noise functions.
Fields
value: f64
Constant value.
Methods
impl Constant
[src]
Trait Implementations
impl Clone for Constant
[src]
fn clone(&self) -> Constant
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Constant
[src]
impl Debug for Constant
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more