[][src]Struct noise_fn::Gradient

pub struct Gradient<Value: Copy, const N: usize> where
    Vector<Value, N>: Dot<Output = Value>, 
{ /* fields omitted */ }

A noise function which returns a gradient.

noise(x) = x.dot(direction)

Implementations

impl<Value: Copy, const N: usize> Gradient<Value, N> where
    Vector<Value, N>: Dot<Output = Value>, 
[src]

pub fn new(direction: Vector<Value, N>) -> Self[src]

Trait Implementations

impl<Value: Clone + Copy, const N: usize> Clone for Gradient<Value, N> where
    Vector<Value, N>: Dot<Output = Value>, 
[src]

impl<Value: Copy, const N: usize> Copy for Gradient<Value, N> where
    Vector<Value, N>: Dot<Output = Value>, 
[src]

impl<Value: Copy, const N: usize> Noise for Gradient<Value, N> where
    Vector<Value, N>: Dot<Output = Value>, 
[src]

type Value = Value

type Unseeded = Self

impl<Value: Copy, const N: usize> NoiseDomain<Matrix<Value, N, 1_usize>> for Gradient<Value, N> where
    Vector<Value, N>: Dot<Output = Value>, 
[src]

Auto Trait Implementations

impl<Value, const N: usize> RefUnwindSafe for Gradient<Value, N> where
    Value: RefUnwindSafe

impl<Value, const N: usize> Send for Gradient<Value, N> where
    Value: Send

impl<Value, const N: usize> Sync for Gradient<Value, N> where
    Value: Sync

impl<Value, const N: usize> Unpin for Gradient<Value, N> where
    Value: Unpin

impl<Value, const N: usize> UnwindSafe for Gradient<Value, N> where
    Value: UnwindSafe

Blanket Implementations

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> From<T> for T[src]

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

impl<TNoise> Noise for TNoise where
    TNoise: SeedOnlyNoise
[src]

type Value = <TNoise as SeedOnlyNoise>::Value

type Unseeded = EmptyConfig<TNoise>

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,