Struct noise::Displace [] [src]

pub struct Displace<'a, Source: 'a, XDisplace: 'a, YDisplace: 'a, ZDisplace: 'a, UDisplace: 'a> {
    pub source: &'a Source,
    pub x_displace: &'a XDisplace,
    pub y_displace: &'a YDisplace,
    pub z_displace: &'a ZDisplace,
    pub u_displace: &'a 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<'a, Source, XDisplace, YDisplace, ZDisplace, UDisplace> Displace<'a, Source, XDisplace, YDisplace, ZDisplace, UDisplace>
[src]

[src]

Trait Implementations

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

[src]

impl<'a, Source, XDisplace, YDisplace, ZDisplace, UDisplace> NoiseFn<Point3<f64>> for Displace<'a, 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<'a, Source, XDisplace, YDisplace, ZDisplace, UDisplace> NoiseFn<Point4<f64>> for Displace<'a, 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]

Auto Trait Implementations

impl<'a, Source, XDisplace, YDisplace, ZDisplace, UDisplace> Send for Displace<'a, Source, XDisplace, YDisplace, ZDisplace, UDisplace> where
    Source: Sync,
    UDisplace: Sync,
    XDisplace: Sync,
    YDisplace: Sync,
    ZDisplace: Sync

impl<'a, Source, XDisplace, YDisplace, ZDisplace, UDisplace> Sync for Displace<'a, Source, XDisplace, YDisplace, ZDisplace, UDisplace> where
    Source: Sync,
    UDisplace: Sync,
    XDisplace: Sync,
    YDisplace: Sync,
    ZDisplace: Sync