10 lines
166 B
Lua
10 lines
166 B
Lua
local math = math
|
|
|
|
math.lerp = function (a, b, t)
|
|
return a + (b - a) * t
|
|
end
|
|
|
|
math.clamp = function(value, min, max)
|
|
return math.min(math.max(value, min), max)
|
|
end
|