summaryrefslogtreecommitdiff
path: root/rect.lua
diff options
context:
space:
mode:
Diffstat (limited to 'rect.lua')
-rw-r--r--rect.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/rect.lua b/rect.lua
index 827489b..0a1b79c 100644
--- a/rect.lua
+++ b/rect.lua
@@ -44,6 +44,7 @@ function Rect.from_centre_dims(cls, centre, width, hight)
w=width, h=hight,
}, cls)
end
+Rect.from_cwh = Rect.from_centre_dims
function Rect.has(self, point)
return self.x0 <= point.x and point.x <= self.x1