summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-10-01 08:14:22 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-10-01 08:14:22 -0400
commit63df1926ee9bde67982f1296cf41d3afc0a148eb (patch)
tree18b24fe134e9ddb5eeecfb694c838ff7e697c7c1
parentfab6610fb1f75c9de02a2c1676a19ba845df5185 (diff)
math: rect: Fix record type printer.
-rw-r--r--chickadee/math/rect.scm12
1 files changed, 6 insertions, 6 deletions
diff --git a/chickadee/math/rect.scm b/chickadee/math/rect.scm
index 690d779..2b94014 100644
--- a/chickadee/math/rect.scm
+++ b/chickadee/math/rect.scm
@@ -83,12 +83,6 @@
rect?
(bv unwrap-rect))
-(define (display-rect rect port)
- (format port "#<rect x: ~f y: ~f width: ~f height: ~f>"
- (rect-x rect) (rect-y rect) (rect-width rect) (rect-height rect)))
-
-(set-record-type-printer! <rect> display-rect)
-
(define (make-null-rect)
(wrap-rect (make-f32vector 4 0.0)))
@@ -181,6 +175,12 @@
"Restrict Y to the portion of the y axis covered by RECT."
(clamp (rect-bottom rect) (rect-top rect) y))
+(define (display-rect rect port)
+ (format port "#<rect x: ~f y: ~f width: ~f height: ~f>"
+ (rect-x rect) (rect-y rect) (rect-width rect) (rect-height rect)))
+
+(set-record-type-printer! <rect> display-rect)
+
;;;
;;; In-place operations