pub struct Exponent<'a, T> {
pub source: &'a dyn NoiseFn<T>,
pub exponent: f64,
}
Expand description
Noise function that maps the output value from the source function onto an exponential curve.
Because most noise functions will output values that range from -1.0 to 1.0, this noise function first normalizes the output value (the range becomes 0.0 to 1.0), maps that value onto an exponential curve, then rescales that value back to the original range.
Fields§
§source: &'a dyn NoiseFn<T>
Outputs a value.
exponent: f64
Exponent to apply to the output value from the source function. Default is 1.0.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for Exponent<'a, T>
impl<'a, T> !Send for Exponent<'a, T>
impl<'a, T> !Sync for Exponent<'a, T>
impl<'a, T> Unpin for Exponent<'a, T>
impl<'a, T> !UnwindSafe for Exponent<'a, T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more