Struct noise::Displace [] [src]

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,
}

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 function that outputs a value

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

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

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

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

Methods

impl<Source, XDisplace, YDisplace, ZDisplace, UDisplace> Displace<Source, XDisplace, YDisplace, ZDisplace, UDisplace>
[src]

[src]

Trait Implementations

impl<Source, XDisplace, YDisplace, ZDisplace, UDisplace> NoiseFn<Point2<f64>> for Displace<Source, XDisplace, YDisplace, ZDisplace, UDisplace> where
    Source: NoiseFn<Point2<f64>>,
    XDisplace: NoiseFn<Point2<f64>>,
    YDisplace: NoiseFn<Point2<f64>>, 
[src]

[src]

impl<Source, XDisplace, YDisplace, ZDisplace, UDisplace> NoiseFn<Point3<f64>> for Displace<Source, XDisplace, YDisplace, ZDisplace, UDisplace> where
    Source: NoiseFn<Point3<f64>>,
    XDisplace: NoiseFn<Point3<f64>>,
    YDisplace: NoiseFn<Point3<f64>>,
    ZDisplace: NoiseFn<Point3<f64>>, 
[src]

[src]

impl<Source, XDisplace, YDisplace, ZDisplace, UDisplace> NoiseFn<Point4<f64>> for Displace<Source, XDisplace, YDisplace, ZDisplace, UDisplace> where
    Source: NoiseFn<Point4<f64>>,
    XDisplace: NoiseFn<Point4<f64>>,
    YDisplace: NoiseFn<Point4<f64>>,
    ZDisplace: NoiseFn<Point4<f64>>,
    UDisplace: NoiseFn<Point4<f64>>, 
[src]

[src]