diff options
author | David Thompson <dthompson2@worcester.edu> | 2022-08-03 17:00:57 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2022-08-03 17:00:57 -0400 |
commit | 44c1bb2b5b18fa5a1f8cb53547baccbdd6bc3e5e (patch) | |
tree | e0186afddc9efcb63a32910cd3eeb28ffc9328d4 | |
parent | 7c07f3eb95e8940fd253ebe426b2f71490206045 (diff) |
math: vector: Reduce character count of printed vectors.
Easier to read this way, IMO.
-rw-r--r-- | chickadee/math/vector.scm | 4 |
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) |