pancelor 7a858257f2 remove math.lerp bounds for t
I think of lerp() as a way to change coordinate systems, essentially
remapping the input numberline onto a shifted+rescaled numberline. In
my mind the full numberline is remapped, not just the 0-1 segment.

An example of how this is useful: in a game, you can write:
`myPos = lerp(pos0, pos1, easeOutBack(u))`
for some `u` that changes from 0 to 1 over time.
(see https://easings.net/#easeOutBack)
This will animate `myPos` between `pos0` and `pos1`, overshooting the
goal position `pos1` in a nicely-animated way.
`easeOutBack(float)->float` is a pure function that overshoots 1,
and by combining it with `lerp()` we can remap coordinates in other
coordinate systems, making them overshoot in the same way.

However, this overshooting is only possible because `easeOutBack(t)`
sometimes exceeds the range 0-1 (e.g. `easeOutBack(0.5)` is 1.0877),
which is not allowed by the current `math.lerp` implementation.

This commit removes the asserts that prevented this use-case. Now, any
value can be inputted for t. For example, `lerp(10,20, 2.0)` will now
return 30, instead of throwing an assert error.
2024-03-13 18:35:07 -07:00
..
2024-02-23 02:37:11 -07:00
2024-03-13 21:47:31 +01:00
2024-03-11 12:25:03 +01:00
2023-11-22 13:24:27 -05:00
2024-03-10 18:13:30 -07:00
2024-03-10 18:13:30 -07:00
2024-03-10 18:13:30 -07:00
2024-03-10 18:13:30 -07:00
2024-03-10 18:13:30 -07:00
2024-02-05 11:55:14 +03:30
2024-03-01 17:42:54 -08:00
2023-10-25 04:28:30 -04:00
2024-02-09 14:02:57 -08:00
2024-01-24 12:48:12 +01:00
2024-03-13 18:35:07 -07:00
2024-03-10 18:13:30 -07:00
2024-02-01 15:22:36 +02:00
2024-02-08 15:39:28 +01:00
2024-03-10 18:13:30 -07:00
2024-03-10 18:13:30 -07:00
2024-03-11 12:25:51 +01:00
2024-02-25 11:22:10 +01:00
2024-02-26 20:11:43 -08:00
2023-10-21 21:24:55 +00:00