FunctionsinverseLerpinverseLerp CallableinverseLerp(a: number, b: number, value: number): numberInverse of a linear interpolation, given a value in between a and b return how close to a or b the value is. Example: a=1, b=5, value=4 will return .75Parametersa: numberb: numbervalue: numberReturns number
Inverse of a linear interpolation, given a
value
in betweena
andb
return how close toa
orb
thevalue
is.Example:
a=1
,b=5
,value=4
will return.75