@Erich_L said:
Would it be too much to ask for someone to share what range_lerp would look like in mathematical notation?
Imho, much better name for range_lerp would be remap. Because it remaps the value from one min/max range to another.
Math is rather simple:
func range_lerp(value, min1, max1, min2, max2):
var value_norm = inverse_lerp(min1, max1, value)
return lerp( min2, max2, value_norm)
while lerp and inverse_lerp are:
func lerp(min, max, parameter):
return min + (max-min) * parameter
func inverse_lerp( min, max, value):
return (value-min) / (max-min)