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: 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.
Methods
impl<Source, XDisplace, YDisplace, ZDisplace, UDisplace> Displace<Source, XDisplace, YDisplace, ZDisplace, UDisplace>
[src]
fn new(
source: Source,
x_displace: XDisplace,
y_displace: YDisplace,
z_displace: ZDisplace,
u_displace: UDisplace
) -> Self
[src]
source: Source,
x_displace: XDisplace,
y_displace: YDisplace,
z_displace: ZDisplace,
u_displace: UDisplace
) -> Self
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]
Source: NoiseFn<Point2<f64>>,
XDisplace: NoiseFn<Point2<f64>>,
YDisplace: NoiseFn<Point2<f64>>,
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]
Source: NoiseFn<Point3<f64>>,
XDisplace: NoiseFn<Point3<f64>>,
YDisplace: NoiseFn<Point3<f64>>,
ZDisplace: NoiseFn<Point3<f64>>,
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]
Source: NoiseFn<Point4<f64>>,
XDisplace: NoiseFn<Point4<f64>>,
YDisplace: NoiseFn<Point4<f64>>,
ZDisplace: NoiseFn<Point4<f64>>,
UDisplace: NoiseFn<Point4<f64>>,