antv-l7/node_modules/@mapbox/unitbezier
thinkinggis f7e5376b7d fix(fix css): fix css png 2019-11-22 18:04:14 +08:00
..
test fix(fix css): fix css png 2019-11-22 18:04:14 +08:00
.travis.yml fix(fix css): fix css png 2019-11-22 18:04:14 +08:00
README.md fix(fix css): fix css png 2019-11-22 18:04:14 +08:00
index.js fix(fix css): fix css png 2019-11-22 18:04:14 +08:00
package.json fix(fix css): fix css png 2019-11-22 18:04:14 +08:00

README.md

Build Status

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.sampleCurveX(t)

bezier.sampleCurveY(t)

bezier.sampleCurveDerivativeX(t)

bezier.solveCurveX(t)

bezier.solve(x, epsilon)