You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<i> val</i> → is a value in the input domain. The function will return a corresponding scaled value in the output range.<br>
10
+
<i> domain_min, domain_max</i> → specify the input domain, the smallest and largest values the input <i>val</i> should take.<br>
11
+
<i> range_min, range_max</i> → sepcify the output range, the smallest and largest values which should be output by the function.<br>
12
+
13
+
<h4>Example</h4>
14
+
<!-- Show example of function.-->
15
+
scale_linear(5,0,10,0,100) → 50<br>
16
+
scale_linear(0.2,0,1,0,360) → 72 <i>(eg, scaling a value between 0 and 1 to an angle between 0 and 360)</i><br>
17
+
scale_linear(1500,1000,10000,9,20) → 10.22 <i>(eg, scaling a population which varies between 1000 and 10000 to a font size between 9 and 20)</i><br>
0 commit comments