Struct ImplicitCellular

Source
pub struct ImplicitCellular { /* private fields */ }
Expand description

The Cellular function provides an interface to a CellularGenerator to generate cellular noise based on the function originally written by Steve Worley. The function calculates F1,F2,F3 and F4 as distances to the first, second, third and fourth nearest seed points, applies the specified coefficients to the distances and sums them together, returning the result.

Implementations§

Trait Implementations§

Source§

impl ImplicitModule for ImplicitCellular

Source§

fn set_seed(&mut self, seed: u32)

Source§

fn get_2d(&mut self, x: f64, y: f64) -> f64

Source§

fn get_3d(&mut self, x: f64, y: f64, z: f64) -> f64

Source§

fn get_4d(&mut self, x: f64, y: f64, z: f64, w: f64) -> f64

Source§

fn get_6d(&mut self, x: f64, y: f64, z: f64, w: f64, u: f64, v: f64) -> f64

Source§

fn set_deriv_spacing(&mut self, s: f64)

Source§

fn spacing(&self) -> f64

Source§

fn get_dx_2(&mut self, x: f64, y: f64) -> f64

Source§

fn get_dy_2(&mut self, x: f64, y: f64) -> f64

Source§

fn get_dx_3(&mut self, x: f64, y: f64, z: f64) -> f64

Source§

fn get_dy_3(&mut self, x: f64, y: f64, z: f64) -> f64

Source§

fn get_dz_3(&mut self, x: f64, y: f64, z: f64) -> f64

Source§

fn get_dx_4(&mut self, x: f64, y: f64, z: f64, w: f64) -> f64

Source§

fn get_dy_4(&mut self, x: f64, y: f64, z: f64, w: f64) -> f64

Source§

fn get_dz_4(&mut self, x: f64, y: f64, z: f64, w: f64) -> f64

Source§

fn get_dw_4(&mut self, x: f64, y: f64, z: f64, w: f64) -> f64

Source§

fn get_dx_6(&mut self, x: f64, y: f64, z: f64, w: f64, u: f64, v: f64) -> f64

Source§

fn get_dy_6(&mut self, x: f64, y: f64, z: f64, w: f64, u: f64, v: f64) -> f64

Source§

fn get_dz_6(&mut self, x: f64, y: f64, z: f64, w: f64, u: f64, v: f64) -> f64

Source§

fn get_dw_6(&mut self, x: f64, y: f64, z: f64, w: f64, u: f64, v: f64) -> f64

Source§

fn get_du_6(&mut self, x: f64, y: f64, z: f64, w: f64, u: f64, v: f64) -> f64

Source§

fn get_dv_6(&mut self, x: f64, y: f64, z: f64, w: f64, u: f64, v: f64) -> f64

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.