scale()
Scales a number using an input range and and an output range to give a proportional output.
This function is valid in v2.15.0 to v2.24.3. This function has been downloaded 72 times.x
.x
.minX
.maxX
.x
scaled based on the range of minX
to maxX
being proportional to minReturn
to maxReturn
. If x
is within the range of minX
and maxX
the return value will be within the range of minReturn
and maxReturn
. If x
is outside of the range of minX
to maxX
then the return value will also be outside of the minReturn
to maxReturn
range. If minReturn
and maxReturn
are the same minReturn
will be returned.