pub struct ScaleBias<T, Source, const DIM: usize> {
pub source: Source,
pub scale: f64,
pub bias: f64,
/* private fields */
}
Expand description
Noise function that applies a scaling factor and a bias to the output value from the source function.
The function retrieves the output value from the source function, multiplies it with the scaling factor, adds the bias to it, then outputs the value.
Fields
source: Source
Outputs a value.
scale: f64
Scaling factor to apply to the output value from the source function. The default value is 1.0.
bias: f64
Bias to apply to the scaled output value from the source function. The default value is 0.0.
Implementations
Trait Implementations
Auto Trait Implementations
impl<T, Source, const DIM: usize> RefUnwindSafe for ScaleBias<T, Source, DIM>where
Source: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, Source, const DIM: usize> Send for ScaleBias<T, Source, DIM>where
Source: Send,
T: Send,
impl<T, Source, const DIM: usize> Sync for ScaleBias<T, Source, DIM>where
Source: Sync,
T: Sync,
impl<T, Source, const DIM: usize> Unpin for ScaleBias<T, Source, DIM>where
Source: Unpin,
T: Unpin,
impl<T, Source, const DIM: usize> UnwindSafe for ScaleBias<T, Source, DIM>where
Source: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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