summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chickadee/math/matrix.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/chickadee/math/matrix.scm b/chickadee/math/matrix.scm
index e462cd2..26c1dc2 100644
--- a/chickadee/math/matrix.scm
+++ b/chickadee/math/matrix.scm
@@ -398,7 +398,7 @@ happens with respect to ORIGIN, a 2D vector."
(x (vec2-x position))
(y (vec2-y position))
(ox (vec2-x origin))
- (oy (vec2-x origin))
+ (oy (vec2-y origin))
(sx (vec2-x scale))
(sy (vec2-y scale))
(kx (vec2-x skew))
@@ -406,7 +406,7 @@ happens with respect to ORIGIN, a 2D vector."
(c (cos rotation))
(s (sin rotation))
(q (- (* c sx) (* s sy ky)))
- (r (+ (* s sx) (* c sx ky)))
+ (r (+ (* s sx) (* c sy ky)))
(s (- (* c sx kx) (* s sy)))
(t (+ (* s sx kx) (* c sy))))
(bytevector-fill! bv 0)