This commit is contained in:
2022-05-21 00:39:58 -04:00
parent f03a48b0a6
commit b950cc3cff
5 changed files with 173 additions and 124 deletions

View File

@@ -9,3 +9,13 @@ function NilIsZero.__newindex(t,k,v)
if v~=nil and v~=0 then rawset(t,k,v) end
end
function seq(a,b,c) return a<=b and b<=c end
function bound(a,b,c)
if b<a then return b elseif b>c then return c else return b end
end
function lerp(a,b,c,d,e)
return d+(e-d)*(a-b)/(c-b)
end