Skip to main content

smoothstep

Function smoothstep 

Source
pub fn smoothstep<F>(x: F) -> F
where F: Copy + From<f32> + Mul<Output = F> + Add<Output = F> + Sub<Output = F>,
Expand description

Smoothstep - quintic Hermite interpolation (NOT cubic!)

Formula: 6x^5 - 15x^4 + 10x^3

This is the standard smoothstep used in Perlin noise for smooth transitions. Java reference: Mth.smoothstep(double)