R/utils.R
lerp.Rd
Linear interpolation of a value
lerp(x, min, max)
numeric. Minimum of the desired range.
numeric. Maximum of the desired range.
numeric. Normalized input value to be transformed. Value must be between 0-1.
Value of x within the desired range given by min, max.
lerp(c(0.1, 0.25, 0.5, 0.75), min = 0, max = 100) #> [1] 10 25 50 75