inverse-smoothstep
v1.0.1
Published
The inverse of the smoothstep function.
Downloads
9
Maintainers
Readme
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.