summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2024-02-03 17:06:12 -0500
committerDavid Thompson <dthompson2@worcester.edu>2024-02-03 17:07:17 -0500
commitbc258cf2f7f4b5b8841d5c9c3876f3b99d2118ee (patch)
tree25b0a017bc05f2d39ec3bd1da5825f2291fb5c5d
parentaeee49735bc5a00aa71d4b3c88ddcf625813d0ab (diff)
math: matrix: Fix matrix3 rotation.
Thanks to wklew on #chickadee for noticing and providing the fix.
-rw-r--r--chickadee/math/matrix.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/chickadee/math/matrix.scm b/chickadee/math/matrix.scm
index a77fd20..9abc479 100644
--- a/chickadee/math/matrix.scm
+++ b/chickadee/math/matrix.scm
@@ -284,9 +284,9 @@ column-major format."
(let ((s (sin angle))
(c (cos angle)))
(init-matrix3 matrix
- c (- s) 0.0
- s c 0.0
- 0.0 0.0 1.0)))
+ c s 0.0
+ (- s) c 0.0
+ 0.0 0.0 1.0)))
(define (matrix3-rotate angle)
(let ((m (make-null-matrix3)))