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

Constant value.

Methods

impl<T: Float> Constant<T>
[src]

Trait Implementations

impl<T: Clone + Float> Clone for Constant<T>
[src]

Returns a copy of the value. Read more

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]

Formats the value using the given formatter.

impl<T, U> NoiseModule<U> for Constant<T> where
    T: Float,
    U: Copy
[src]