UNPKG

413 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports["default"] = void 0;
7var _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};
15exports["default"] = _default;
\No newline at end of file