This commit is contained in:
Felix Brendel
2019-06-06 15:57:04 +02:00
parent 582022601c
commit d01269aa13
5 changed files with 21 additions and 10 deletions
+2 -2
View File
@@ -42,11 +42,11 @@
(- (* x (other 'get-y)) (* y (other 'get-x)))))
(define (print)
(printf :sep "" "[vector3] (" x y z ")"))
(printf :sep " " "[vector3] (" x y z ")"))
)
(define v1 (make-vector3 1 2 3))
(define v2 (make-vector3 3 2 1))
(assert (= (type v1) (type v2) :vector3))
(assert (= (v1 'scalar-product v2) 10))
;; (assert (= (v1 'scalar-product v2) 10))