projects
/
onyx-particle-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0285f38
)
wrong op on vecmath
master
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Wed, 20 Oct 2021 19:17:51 +0000
(14:17 -0500)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Wed, 20 Oct 2021 19:17:51 +0000
(14:17 -0500)
src/vecmath.onyx
patch
|
blob
|
history
diff --git
a/src/vecmath.onyx
b/src/vecmath.onyx
index e724ffeb196ea66b562348db2b7f0886e58c66bc..b7a46db5da9aad4ba85e388647ad9c6a2615f9a3 100644
(file)
--- a/
src/vecmath.onyx
+++ b/
src/vecmath.onyx
@@
-22,8
+22,8
@@
V2f :: struct {
}
#operator*= macro (a: ^V2f, s: f32) {
}
#operator*= macro (a: ^V2f, s: f32) {
- a.x
+
= s;
- a.y
+
= s;
+ a.x
*
= s;
+ a.y
*
= s;
}
v2f_dot :: macro (a, b: V2f) => a.x * b.x + a.y * b.y;
}
v2f_dot :: macro (a, b: V2f) => a.x * b.x + a.y * b.y;