Skip to main content

bias_towards_extreme

Function bias_towards_extreme 

Source
pub fn bias_towards_extreme(noise: f64, factor: f64) -> f64
Expand description

Bias a noise value towards extremes (-1 or 1) using a sine curve.

Java reference: NoiseUtils.biasTowardsExtreme(double, double)