mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
Add files via upload
This commit is contained in:
parent
10fa828bd7
commit
3b8d2b2e8c
3 changed files with 93 additions and 0 deletions
11
res/modules/internal/math.lua
Normal file
11
res/modules/internal/math.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
function math.Rand( low, high )
|
||||
return low + (high - low) * math.random()
|
||||
end
|
||||
|
||||
function math.Clamp( _in, low, high )
|
||||
return math.min(math.max( _in, low ), high)
|
||||
end
|
||||
|
||||
function math.Lerp(frac, from, to)
|
||||
return from + (to - from) * frac
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue