pub struct Constant {
pub value: f64,
}
Expand description
Noise function that outputs a constant value.
This function takes a input, value, and returns that input for all points, producing a constant-valued field.
This function is not very useful by itself, but can be used as a source function for other noise functions.
Fields§
§value: f64
Constant value.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Constant
impl Send for Constant
impl Sync for Constant
impl Unpin for Constant
impl UnwindSafe for Constant
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