[][src]Struct nannou::noise::Displace

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]

pub fn new(
    source: Source,
    x_displace: XDisplace,
    y_displace: YDisplace,
    z_displace: ZDisplace,
    u_displace: UDisplace
) -> Displace<Source, XDisplace, YDisplace, ZDisplace, UDisplace>
[src]

Trait Implementations

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

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

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

Auto Trait Implementations

impl<Source, XDisplace, YDisplace, ZDisplace, UDisplace> RefUnwindSafe for Displace<Source, XDisplace, YDisplace, ZDisplace, UDisplace> where
    Source: RefUnwindSafe,
    UDisplace: RefUnwindSafe,
    XDisplace: RefUnwindSafe,
    YDisplace: RefUnwindSafe,
    ZDisplace: RefUnwindSafe

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

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

impl<Source, XDisplace, YDisplace, ZDisplace, UDisplace> Unpin for Displace<Source, XDisplace, YDisplace, ZDisplace, UDisplace> where
    Source: Unpin,
    UDisplace: Unpin,
    XDisplace: Unpin,
    YDisplace: Unpin,
    ZDisplace: Unpin

impl<Source, XDisplace, YDisplace, ZDisplace, UDisplace> UnwindSafe for Displace<Source, XDisplace, YDisplace, ZDisplace, UDisplace> where
    Source: UnwindSafe,
    UDisplace: UnwindSafe,
    XDisplace: UnwindSafe,
    YDisplace: UnwindSafe,
    ZDisplace: UnwindSafe

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,