You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In many cases in this library we use the interpolated value
a + (b - a) * t
This can return a value not equal to b when t = 1. If we want to guarantee that the exact value b is returned for t = 1, we should instead use the formula
a * (1 - t) + b * t
The text was updated successfully, but these errors were encountered:
I was under the impression that this was a kind of optimisation (doing substractions once—probably ultra negligible). Also, the substraction was a nuisance when working with Uint32 numbers…
In any case, I think having exact ends is desirable.
In many cases in this library we use the interpolated value
This can return a value not equal to b when t = 1. If we want to guarantee that the exact value b is returned for t = 1, we should instead use the formula
The text was updated successfully, but these errors were encountered: