cos-in-range

1.0.0 • Public • Published

cos-in-range Build Status

Utility function that maps a value through a cos function given the minimum and maximum value in a defined range.

Usage

NPM

import cosInRange from 'cos-in-range';
 
const value = cosInRange(1, 0, 2, 0, 4); // 4

Curve with given values

Tests

$ npm i
$ npm test

Licence

MIT

Package Sidebar

Install

npm i cos-in-range

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • sreucherand