Compute the opposite of lerp. Given a and b and a value between a and b returns a value between 0 and 1. 0 if a, 1 if b. Note: no clamping is done.
start value
end value
value between a and b
(v - a) / (b - a)
Compute the opposite of lerp. Given a and b and a value between a and b returns a value between 0 and 1. 0 if a, 1 if b. Note: no clamping is done.