1.0.0 • Published 2 months ago
inverse-smoothstep v1.0.0
inverse-smoothstep
The inverse of the smoothstep function.
Based on Inigo Quilez.
Installation
npm install inverse-smoothstep
Usage
import inverseSmoothstep from "inverse-smoothstep";
inverseSmoothstep(0.5);
// => 0.5
inverseSmoothstep(0.75)
// => 0.6736481776669303
API
inverseSmoothstep
inverseSmoothstep(x) ⇒ number ⏏
The inverse of the smoothstep function
Kind: Exported function
Param | Type |
---|---|
x | number |
License
MIT. See license file.
1.0.0
2 months ago