The inverse of the smoothstep function.
Based on Inigo Quilez.
npm install inverse-smoothstep
import inverseSmoothstep from "inverse-smoothstep";
inverseSmoothstep(0.5);
// => 0.5
inverseSmoothstep(0.75)
// => 0.6736481776669303
The inverse of the smoothstep function
Kind: Exported function
Param | Type |
---|---|
x | number |
MIT. See license file.