1 | ;
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports["default"] = void 0;
|
7 | var _default = {
|
8 | getPosition: function getPosition(x, min, max) {
|
9 | return Math.pow(max / (max - min), 0.5) * Math.pow((x - min) / max, 0.5) * 100;
|
10 | },
|
11 | getValue: function getValue(x, min, max) {
|
12 | return Math.round(Math.pow(x / 100, 2) * (max - min)) + min;
|
13 | }
|
14 | };
|
15 | exports["default"] = _default; |
\ | No newline at end of file |