diff options
author | David Thompson <dthompson2@worcester.edu> | 2021-10-02 07:55:11 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2021-10-02 07:55:11 -0400 |
commit | aba19e9f43a571b022479bbb10b490c46e16c574 (patch) | |
tree | aa2cea3e06fd9e4b822642f0979d73fb50bd030d /chickadee | |
parent | df1e5f814ce99f712231806eb4a71983c2dc1612 (diff) |
math: vector: Fix vec2-cross.
Diffstat (limited to 'chickadee')
-rw-r--r-- | chickadee/math/vector.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chickadee/math/vector.scm b/chickadee/math/vector.scm index 747200e..218edc7 100644 --- a/chickadee/math/vector.scm +++ b/chickadee/math/vector.scm @@ -247,8 +247,8 @@ polar coordinate (R, THETA) with an arbitrary ORIGIN point." (* (vec3-z v1) (vec3-z v2)))) (define-inlinable (vec2-cross v1 v2) - (- (* (vec2-x v1) (vec2-x v2)) - (* (vec2-y v1) (vec2-y v2)))) + (- (* (vec2-x v1) (vec2-y v2)) + (* (vec2-y v1) (vec2-x v2)))) (define-inlinable (vec3-cross! dest v1 v2) (set-vec3! dest |