Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brandonxiang/interpolator
a intepolator for serval numbers
https://github.com/brandonxiang/interpolator
Last synced: 9 days ago
JSON representation
a intepolator for serval numbers
- Host: GitHub
- URL: https://github.com/brandonxiang/interpolator
- Owner: brandonxiang
- License: mit
- Created: 2016-12-08T05:02:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-19T03:33:17.000Z (almost 8 years ago)
- Last Synced: 2024-10-11T12:58:08.306Z (about 1 month ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# interpolator
a interpolator for serval numbers## Installation
```
npm install interpolator.js
```## Usage
```
var interpolator = require('interpolator.js')var result = intepolator([{ x: 3, y: 14 }, { x: 8, y: 22 }], 7, 1.5)
```
## Parameters
- A list of two point with x and y values
- X value of the target value
- Interpolation base value