Returns the fraction in [0, 1] that value represents between x and y. Returns 0 when x == y (rather than NaN).
[0, 1]
0
x == y
NaN
The interpolation factor.