Linear mapping of x from range [a1, a2] to range [b1, b2].
Value to be mapped.
Minimum value for range A.
Maximum value for range A.
Minimum value for range B.
Maximum value for range B.
Linear mapping of x from range [a1, a2] to range [b1, b2].