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

Constant value.

Methods

impl Constant
[src]

[src]

Trait Implementations

impl Clone for Constant
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Constant
[src]

impl Debug for Constant
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: Copy> NoiseFn<T> for Constant
[src]

[src]

Auto Trait Implementations

impl Send for Constant

impl Sync for Constant