From 44815d406e6679f5f010c7c75f43f17016d822b9 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 17 Jan 2018 14:43:31 -0500 Subject: math: matrix: Fix typos in matrix4-2d-transform! * chickadee/math/matrix.scm (matrix4-2d-transform!): Fix bad typos! --- chickadee/math/matrix.scm | 4 ++-- 1 file 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) -- cgit v1.2.3