source:
node_modules/victory-vendor/lib-vendor/d3-ease/src/math.js
| Last change on this file was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 245 bytes | |
| Line | |
|---|---|
| 1 | "use strict"; |
| 2 | |
| 3 | Object.defineProperty(exports, "__esModule", { |
| 4 | value: true |
| 5 | }); |
| 6 | exports.tpmt = tpmt; |
| 7 | // tpmt is two power minus ten times t scaled to [0,1] |
| 8 | function tpmt(x) { |
| 9 | return (Math.pow(2, -10 * x) - 0.0009765625) * 1.0009775171065494; |
| 10 | } |
Note:
See TracBrowser
for help on using the repository browser.
