1
0
Fork 0
mirror of https://github.com/luau-lang/luau.git synced 2025-04-21 04:03:47 +01:00
luau/Common
Arseny Kapoulkine 8a4ef26f89
Implement support for math.lerp ()
This change implements math.lerp RFC with C function definition, builtin
function, builtin constant folding and tests.

The tests validate a few lerp properties by providing counter-examples
for popular lerp implementations; the testing is of course not
exhaustive, as exhaustive testing was done offline using fuzzing.

Type definitions will be updated separately.

Codegen support will be implemented separately: it requires new IR for
conditional
selects to represent the desired logic without using a branch.
2025-01-09 09:42:07 -08:00
..
include/Luau Implement support for math.lerp () 2025-01-09 09:42:07 -08:00