tapers:用自定义曲线变换[0; 1] <=> [X,Y]值

时间:2021-03-22 18:12:11
【文件属性】:
文件名称:tapers:用自定义曲线变换[0; 1] <=> [X,Y]值
文件大小:312KB
文件格式:ZIP
更新时间:2021-03-22 18:12:11
curve maths normalize denormalize transforms tapers 用各种曲线将[0; 1]到[X,Y]之间的值映射。 请访问。 精选锥度 安装 $ yarn add tapers # or $ npm i tapers 文献资料 线性锥度 实现仿射函数a * x + b 。 import { LinearTaper } from 'tapers' const taper = new LinearTaper ( 3 , 5 ) taper . map ( 0 ) // => 3 taper . map ( 0.5 ) // => 4 taper . map ( 1 ) // => 5 分段线性锥度 给定一个Y值数组,在这些点之间线性插值。 import { PiecewiseLinearTaper } from 'tapers' const taper = new PiecewiseLinearTaper ( [ 3 , 5 , 2
【文件预览】:
tapers-master
----yarn.lock(185KB)
----src()
--------SCurveTaper.test.ts(1KB)
--------index.ts(348B)
--------PiecewiseLinearTaper.ts(779B)
--------LinearTaper.ts(447B)
--------PiecewiseLinearTaper.test.ts(1KB)
--------SCurveTaper.ts(421B)
--------LinearTaper.test.ts(1KB)
----img()
--------s-curve.png(117KB)
----website()
--------public()
--------yarn.lock(328KB)
--------next-env.d.ts(75B)
--------src()
--------tsconfig.json(485B)
--------.gitignore(277B)
--------package.json(656B)
----.npmignore(96B)
----.travis.yml(2KB)
----tsconfig.json(831B)
----LICENSE(1KB)
----README.md(2KB)
----nodemon.json(87B)
----.gitignore(88B)
----package.json(1KB)

网友评论