文件名称:cat-rom-spline:Catmull Rom样条插值变得容易
文件大小:22KB
文件格式:ZIP
更新时间:2024-06-08 06:05:11
JavaScript
Catmull Rom样条插值变得容易。 安装 $ npm install --save cat-rom-spline 用法 var catRomSpline = require ( 'cat-rom-spline' ) ; // Points are arrays in the form of [x, y] var p0 = [ 0 , 0 ] ; var p1 = [ 5 , 5 ] ; var p2 = [ 5 , 10 ] ; var p3 = [ 15 , 20 ] ; // At least 4 points are needed to interpolate var points = [ p0 , p1 , p2 , p3 ] ; // There are optional configurations that you can make but they aren't r
【文件预览】:
cat-rom-spline-master
----.travis.yml(72B)
----index.js(2KB)
----package.json(927B)
----.yo-rc.json(26B)
----test()
--------test.js(672B)
----Gruntfile.js(1KB)
----examples()
--------curves-graph()
----.gitignore(29B)
----README.md(1KB)
----.jshintrc(227B)
----.editorconfig(188B)
----.gitattributes(12B)