Initial commit
This commit is contained in:
17
node_modules/@mapbox/unitbezier/README.md
generated
vendored
Normal file
17
node_modules/@mapbox/unitbezier/README.md
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
[](https://travis-ci.org/mapbox/unitbezier)
|
||||
|
||||
# unitbezier
|
||||
|
||||
Unit bezier interpolation function: a port to JavaScript from Webkit:
|
||||
|
||||
http://svn.webkit.org/repository/webkit/trunk/Source/WebCore/platform/graphics/UnitBezier.h
|
||||
|
||||
## 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).
|
||||
Reference in New Issue
Block a user