map
Map x from [xMin, xMax] to [yMin, yMax].
Return
the new value for x
Parameters
x
- x
x Min
- the lower bound of the actual x scale (included)
x Max
- the upper bound of the actual x scale (included)
y Min
- the lower bound of the new x scale (included)
y Max
- the upper bound of the new x scale (included)