JSPM

smoothstep

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 49
  • Score
    100M100P100Q92492F
  • License BSD

bare-bones smoothstep interpolation function

Package Exports

  • smoothstep

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (smoothstep) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

browser support

smoothstep

frozen

Bare-bones smoothstep function (cubic Hermite interpolation), returning a value in the range 0.0 to 1.0.

Use:

var smoothstep = require('smoothstep')

var res = smoothstep(a, b, t);

Usage

NPM

smoothstep(min, max, t)

Performs smoothstep from min to max using the given value, by clamping and then using cubic Hermite interpolation.

License

BSD, see LICENSE.md for details.