Input value to map from inputRange.
Two-element source range [from, to].
Two-element destination range mapped via linear interpolation.
Optional settings; clamp defaults to true, constraining the result to outputRange.
The linearly mapped value in outputRange; extrapolates when clamp is false.
Maps a numeric value from one range to another via linear interpolation.
Clamps to the output range by default. Supports negative and floating-point ranges. Pass
{ clamp: false }to allow extrapolation. Degenerate input ranges (from === to) map predictably.