[−][src]Struct nannou::noise::Displace
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]
source: Source,
x_displace: XDisplace,
y_displace: YDisplace,
z_displace: ZDisplace,
u_displace: UDisplace
) -> Displace<Source, XDisplace, YDisplace, ZDisplace, UDisplace>
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]
Source: NoiseFn<[f64; 2]>,
XDisplace: NoiseFn<[f64; 2]>,
YDisplace: NoiseFn<[f64; 2]>,
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]
Source: NoiseFn<[f64; 3]>,
XDisplace: NoiseFn<[f64; 3]>,
YDisplace: NoiseFn<[f64; 3]>,
ZDisplace: NoiseFn<[f64; 3]>,
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]
Source: NoiseFn<[f64; 4]>,
UDisplace: NoiseFn<[f64; 4]>,
XDisplace: NoiseFn<[f64; 4]>,
YDisplace: NoiseFn<[f64; 4]>,
ZDisplace: NoiseFn<[f64; 4]>,
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,
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,
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,
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,
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,
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]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
fn convert_into(self) -> U
[src]
fn convert_unclamped_into(self) -> U
[src]
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,