You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
332 B
JavaScript
11 lines
332 B
JavaScript
5 years ago
|
// https://rwaldron.github.io/proposal-math-extensions/
|
||
|
var $export = require('./_export');
|
||
|
var scale = require('./_math-scale');
|
||
|
var fround = require('./_math-fround');
|
||
|
|
||
|
$export($export.S, 'Math', {
|
||
|
fscale: function fscale(x, inLow, inHigh, outLow, outHigh) {
|
||
|
return fround(scale(x, inLow, inHigh, outLow, outHigh));
|
||
|
}
|
||
|
});
|