summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2022-08-03 17:00:57 -0400
committerDavid Thompson <dthompson2@worcester.edu>2022-08-03 17:00:57 -0400
commit44c1bb2b5b18fa5a1f8cb53547baccbdd6bc3e5e (patch)
treee0186afddc9efcb63a32910cd3eeb28ffc9328d4
parent7c07f3eb95e8940fd253ebe426b2f71490206045 (diff)
math: vector: Reduce character count of printed vectors.
Easier to read this way, IMO.
-rw-r--r--chickadee/math/vector.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/chickadee/math/vector.scm b/chickadee/math/vector.scm
index 0a54128..b2ff265 100644
--- a/chickadee/math/vector.scm
+++ b/chickadee/math/vector.scm
@@ -195,12 +195,12 @@ polar coordinate (R, THETA) with an arbitrary ORIGIN point."
(set-vec3-z! v z))
(define (display-vec2 v port)
- (format port "#<vec2 x: ~f y: ~f>" (vec2-x v) (vec2-y v)))
+ (format port "#<vec2 ~f, ~f>" (vec2-x v) (vec2-y v)))
(set-record-type-printer! <vec2> display-vec2)
(define (display-vec3 v port)
- (format port "#<vec3 x: ~f y: ~f z: ~f>" (vec3-x v) (vec3-y v) (vec3-z v)))
+ (format port "#<vec3 ~f, ~f, ~f>" (vec3-x v) (vec3-y v) (vec3-z v)))
(set-record-type-printer! <vec3> display-vec3)