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: &'a Source
Source function that outputs a value
x_displace: &'a XDisplace
Displacement function that displaces the x coordinate of the input value.
y_displace: &'a YDisplace
Displacement function that displaces the y coordinate of the input value.
z_displace: &'a ZDisplace
Displacement function that displaces the z coordinate of the input value. Only needed for 3d or higher noise.
u_displace: &'a UDisplace
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]
pub fn new(
source: &'a Source,
x_displace: &'a XDisplace,
y_displace: &'a YDisplace,
z_displace: &'a ZDisplace,
u_displace: &'a UDisplace
) -> Self
[src]
source: &'a Source,
x_displace: &'a XDisplace,
y_displace: &'a YDisplace,
z_displace: &'a ZDisplace,
u_displace: &'a UDisplace
) -> Self
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]
Source: NoiseFn<Point2<f64>>,
XDisplace: NoiseFn<Point2<f64>>,
YDisplace: NoiseFn<Point2<f64>>,
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]
Source: NoiseFn<Point3<f64>>,
XDisplace: NoiseFn<Point3<f64>>,
YDisplace: NoiseFn<Point3<f64>>,
ZDisplace: NoiseFn<Point3<f64>>,
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]
Source: NoiseFn<Point4<f64>>,
XDisplace: NoiseFn<Point4<f64>>,
YDisplace: NoiseFn<Point4<f64>>,
ZDisplace: NoiseFn<Point4<f64>>,
UDisplace: NoiseFn<Point4<f64>>,
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,
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,
Source: Sync,
UDisplace: Sync,
XDisplace: Sync,
YDisplace: Sync,
ZDisplace: Sync,