open-index/open-npm huggingface dataset:
npm package: @mapmetrics/unitbezier
Description: unit bezier curve interpolation
Latest version: 0.0.1

# @mapmetrics/unitbezier

## Installation

```sh
$ npm install @mapmetrics/unitbezier
```

## api

### new UnitBezier(p1x, p1y, p2x, p2y)

Initialize a new bezier curve given the points

### bezier.solve(x, epsilon)

Evaluate bezier for value `x` (ranging from 0 to 1) with `epsilon` precision (1e-6 by default).