mapLinear(x, a1, a2, b1, b2) → {number}
Linear mapping from range to range
Parameters
Name | Type | Description |
---|---|---|
x | number | The value to map |
a1 | number | First endpoint of the range |
a2 | number | Final endpoint of the range |
b1 | number | First endpoint of the range |
b2 | number | Final endpoint of the range |
Returns
number -
- Source code: math/Math.js (Line 1085)
Please login to continue.