Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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