-[NEW] Nemesio acabat
This commit is contained in:
1 parent
c4da64aa1f
commit
c02c086af3
4 files changed
+37
-11
No files matched your search
@@ -34,3 +34,11 @@ function util.normalize(v)
|
||||
end
|
||||
return {x = v.x / magnitud, y = v.y / magnitud}
|
||||
end
|
||||
|
||||
function math.sign(value)
|
||||
if value > 0 then
|
||||
return 1
|
||||
else
|
||||
return -1
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user