Struct noise::Constant
[−]
[src]
pub struct Constant<T: Float> { pub value: T, }
Noise module that outputs a constant value.
This module takes a input, value, and returns that input for all points, producing a constant-valued field.
This module is not very useful by itself, but can be used as a source module for other noise modules.
Fields
value: T
Constant value.
Methods
impl<T: Float> Constant<T>
[src]
Trait Implementations
impl<T: Clone + Float> Clone for Constant<T>
[src]
fn clone(&self) -> Constant<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<T: Copy + Float> Copy for Constant<T>
[src]
impl<T: Debug + Float> Debug for Constant<T>
[src]
impl<T, U> NoiseModule<U> for Constant<T> where
T: Float,
U: Copy,
[src]
T: Float,
U: Copy,