pub struct Displace<Source, XDisplace, YDisplace, ZDisplace, UDisplace> {
    pub source: Source,
    pub x_displace: XDisplace,
    pub y_displace: YDisplace,
    pub z_displace: ZDisplace,
    pub u_displace: UDisplace,
}
Expand description

Noise function that uses multiple source functions to displace each coordinate of the input value before returning the output value from the source function.

Fields

source: Source

Source function that outputs a value

x_displace: XDisplace

Displacement function that displaces the x coordinate of the input value.

y_displace: YDisplace

Displacement function that displaces the y coordinate of the input value.

z_displace: ZDisplace

Displacement function that displaces the z coordinate of the input value. Only needed for 3d or higher noise.

u_displace: UDisplace

Displacement function that displaces the u coordinate of the input value. Only needed for 4d or higher noise.

Implementations

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.