Skip to main content

smoothstep

Function smoothstep 

Source
pub fn smoothstep(lo: f64, hi: f64, v: f64) -> f64
Expand description

Smooth-step function: 3t² - 2t³ with t = (v - lo) / (hi - lo).