LM.Lerp(f, min, max)

Version added: before 9.5

This function is a shortcut for linear interpolation between two numbers

ArgumentTypeDescriptionDefaultVer
frealA number between (and including) 0 and 1< 9.5
minrealThe starting value to interpolate< 9.5
maxrealThe end value to interpolate< 9.5

Return type (real): a linear interpolation between start and end

This function is a shortcut for linear interpolation between two numbers. If value is 0, then start is returned. If value is 1, end is returned. For anything in between, the function interpolates between start and end.