This commit is contained in:
2026-07-19 13:22:02 +09:00
63 changed files with 1391 additions and 3103 deletions
+7
View File
@@ -17,6 +17,13 @@ function AABB.valid(aabb)
return aabb.left_top.x < aabb.right_bottom.x and aabb.left_top.y < aabb.right_bottom.y
end
--- Returns the size of the area contained within an AABB
--- @param aabb BoundingBox
--- @return number
function AABB.size(aabb)
return (aabb.right_bottom.x - aabb.left_top.x) * (aabb.right_bottom.y - aabb.left_top.y)
end
--- Clone an area, allows for safe mutation of an input value
--- @param aabb BoundingBox
--- @return BoundingBox
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@expcluster/lib_util",
"version": "0.1.0",
"version": "6.5.0",
"description": "Clusterio plugin providing Lua libraries and other utilities.",
"author": "Cooldude2606 <https://github.com/Cooldude2606>",
"license": "MIT",