pub struct Exponent<T, Source, const DIM: usize>where
Source: NoiseFn<T, DIM>,{
pub source: Source,
pub exponent: f64,
/* private fields */
}
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: Source
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<T, Source, const DIM: usize> RefUnwindSafe for Exponent<T, Source, DIM>where
Source: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, Source, const DIM: usize> Send for Exponent<T, Source, DIM>where
Source: Send,
T: Send,
impl<T, Source, const DIM: usize> Sync for Exponent<T, Source, DIM>where
Source: Sync,
T: Sync,
impl<T, Source, const DIM: usize> Unpin for Exponent<T, Source, DIM>where
Source: Unpin,
T: Unpin,
impl<T, Source, const DIM: usize> UnwindSafe for Exponent<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