Closed yannbriancon closed 1 year ago
Changing the function like that would constitute a breaking change, so I'd prefer not to do that.
However, what if I added a second argument, clamp, a boolean. It would default to false, but if you set it to true, it would restrict the input t to [0, 1]?
Thanks for the new parameter 👍
In the library, lines are actually line segments. Current implementation of lineInterpolate gives an interpolator that returns points outside of the line segment if values passed are outside the interval [0;1].
The following change would allow passing any number value and get the appropriate point on the line segment: