pub struct Cylinders {
pub frequency: f64,
}
Expand description
Noise function that outputs concentric cylinders.
This noise function outputs concentric cylinders centered on the origin. The cylinders are oriented along the z axis similar to the concentric rings of a tree. Each cylinder extends infinitely along the z axis.
Fields
frequency: f64
Frequency of the concentric objects.
Implementations
sourceimpl Cylinders
impl Cylinders
pub const DEFAULT_FREQUENCY: f64 = 1f64
pub fn new() -> Self
pub fn set_frequency(self, frequency: f64) -> Self
Trait Implementations
impl Copy for Cylinders
Auto Trait Implementations
impl RefUnwindSafe for Cylinders
impl Send for Cylinders
impl Sync for Cylinders
impl Unpin for Cylinders
impl UnwindSafe for Cylinders
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