10 lines
160 B
Lua
10 lines
160 B
Lua
utils = {}
|
|
|
|
function vec(x, y)
|
|
return {x = x, y = y}
|
|
end
|
|
|
|
function utils.round(num)
|
|
return num >= 0 and math.floor(num + 0.5) or math.ceil(num - 0.5)
|
|
end
|