summaryrefslogtreecommitdiff
path: root/2d
diff options
context:
space:
mode:
Diffstat (limited to '2d')
-rw-r--r--2d/transform.scm8
1 files changed, 4 insertions, 4 deletions
diff --git a/2d/transform.scm b/2d/transform.scm
index ea3061d..e1dba7b 100644
--- a/2d/transform.scm
+++ b/2d/transform.scm
@@ -151,10 +151,10 @@ identity-transform if called without any arguments."
(define (transform-translate v)
"Return a new transform that translates the x and y axes by the
vector2 V."
- (make-transform 1 0 0 (vx v)
- 0 1 0 (vy v)
- 0 0 1 0
- 0 0 0 1))
+ (make-transform 1 0 0 0
+ 0 1 0 0
+ 0 0 1 0
+ (vx v) (vy v) 0 1))
(define (transform-scale v)
"Return a new transform that scales the X and Y axes by the vector2