diff options
Diffstat (limited to 'chickadee/math/matrix.scm')
-rw-r--r-- | chickadee/math/matrix.scm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chickadee/math/matrix.scm b/chickadee/math/matrix.scm index 355562a..db05dd6 100644 --- a/chickadee/math/matrix.scm +++ b/chickadee/math/matrix.scm @@ -762,10 +762,10 @@ position EYE, with the top of the viewport facing UP." (position null-vec2) (rotation 0.0) (scale default-scale) - (skew null-vec2)) + (shear null-vec2)) "Store in MATRIX the transformation described by POSITION, a 2D vector or rect, ROTATION, a scalar representing a rotation about the Z -axis, SCALE, a 2D vector, and SKEW, a 2D vector. The transformation +axis, SCALE, a 2D vector, and SHEAR, a 2D vector. The transformation happens with respect to ORIGIN, a 2D vector." (let* ((bv (matrix4-bv matrix)) (x (vec2-x position)) @@ -774,14 +774,14 @@ happens with respect to ORIGIN, a 2D vector." (oy (vec2-y origin)) (sx (vec2-x scale)) (sy (vec2-y scale)) - (kx (vec2-x skew)) - (ky (vec2-y skew)) + (kx (vec2-x shear)) + (ky (vec2-y shear)) (c (cos rotation)) (s (sin rotation)) - (q (- (* c sx) (* s sy ky))) + (q (* c sx)) (r (+ (* s sx) (* c sy ky))) (s (- (* c sx kx) (* s sy))) - (t (+ (* s sx kx) (* c sy)))) + (t (* c sy))) (bytevector-fill! bv 0) (f32vector-set! bv 10 1.0) (f32vector-set! bv 15 1.0) |