pub struct Gradient<Value: Copy, const N: usize> where
Vector<Value, N>: Dot<Output = Value>, { /* private fields */ }
Expand description
A noise function which returns a gradient.
noise(x) = x.dot(direction)
Implementations
Trait Implementations
sourceimpl<Value: Clone + Copy, const N: usize> Clone for Gradient<Value, N> where
Vector<Value, N>: Dot<Output = Value>,
impl<Value: Clone + Copy, const N: usize> Clone for Gradient<Value, N> where
Vector<Value, N>: Dot<Output = Value>,
sourceimpl<Value: Copy, const N: usize> Noise for Gradient<Value, N> where
Vector<Value, N>: Dot<Output = Value>,
impl<Value: Copy, const N: usize> Noise for Gradient<Value, N> where
Vector<Value, N>: Dot<Output = Value>,
sourceimpl<Value: Copy, const N: usize> NoiseDomain<Matrix<Value, N, 1_usize>> for Gradient<Value, N> where
Vector<Value, N>: Dot<Output = Value>,
impl<Value: Copy, const N: usize> NoiseDomain<Matrix<Value, N, 1_usize>> for Gradient<Value, N> where
Vector<Value, N>: Dot<Output = Value>,
impl<Value: Copy + Copy, const N: usize> Copy for Gradient<Value, N> where
Vector<Value, N>: Dot<Output = Value>,
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more