Performs inverse linear interpolation.
This function returns the normalized value of a in the range [x, y]. It calculates how far a is between x and y and returns a value between 0 and 1.
a
[x, y]
x
y
The start of the range.
The end of the range.
The value to normalize, which should lie between x and y.
A normalized value between 0 and 1 that represents where a lies between x and y.
Performs inverse linear interpolation.
This function returns the normalized value of
ain the range[x, y]. It calculates how farais betweenxandyand returns a value between 0 and 1.