summaryrefslogtreecommitdiff
path: root/2d/rect.scm
diff options
context:
space:
mode:
Diffstat (limited to '2d/rect.scm')
-rw-r--r--2d/rect.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/2d/rect.scm b/2d/rect.scm
index 718f69b..6d3594c 100644
--- a/2d/rect.scm
+++ b/2d/rect.scm
@@ -27,6 +27,7 @@
#:use-module (2d vector2)
#:export (<rect>
make-rect
+ null-rect
rect?
rect-x
rect-y
@@ -70,6 +71,8 @@
(width rect-width)
(height rect-height))
+(define null-rect (make-rect 0 0 0 0))
+
(define (rect-right rect)
(+ (rect-x rect) (rect-width rect)))