diff options
| -rw-r--r-- | rect.lua | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |
