Linearly translate v in some range (v_min, v_max) to another range (t_min, t_max).
Returns t_min if v <= v_min and t_max if v >= v_max
Value to translate linearly
Min value that v can be
Max value that v can be
Target min, default = 0
Target max, default = 1
Translated v in range v_min to v_max to target range t_min to t_max
Generated using TypeDoc
Linearly translate v in some range (v_min, v_max) to another range (t_min, t_max).
Returns t_min if v <= v_min and t_max if v >= v_max