Struct anl::ImplicitCellular
[−]
[src]
pub struct ImplicitCellular { /* fields omitted */ }
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.
Methods
impl ImplicitCellular
[src]
fn new() -> ImplicitCellular
fn with_coefficients(a: f64, b: f64, c: f64, d: f64) -> ImplicitCellular
fn set_coefficients(&mut self, a: f64, b: f64, c: f64, d: f64)
fn set_cellular_source(
&mut self,
source: Option<Rc<RefCell<CellularGenerator>>>
)
&mut self,
source: Option<Rc<RefCell<CellularGenerator>>>
)