aboutsummaryrefslogtreecommitdiff
path: root/core/math.odin
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-07 23:42:43 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-07 23:42:43 +0100
commit4b051a0d3b9da924924ed2a28ef7c102902a880c (patch)
tree11ac611a92c608097b1af289d71a6ac21c9b4900 /core/math.odin
parent45353465a6d743f9c9cbca63c45877a6d294feb5 (diff)
`..` half closed range; `...` open range; `...` variadic syntax
Diffstat (limited to 'core/math.odin')
-rw-r--r--core/math.odin8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/math.odin b/core/math.odin
index 8fdd51cbd..e3f525fc0 100644
--- a/core/math.odin
+++ b/core/math.odin
@@ -158,8 +158,8 @@ mat4_identity :: proc() -> Mat4 {
}
mat4_transpose :: proc(m: Mat4) -> Mat4 {
- for j in 0..<4 {
- for i in 0..<4 {
+ for j in 0..4 {
+ for i in 0..4 {
m[i][j], m[j][i] = m[j][i], m[i][j];
}
}
@@ -168,8 +168,8 @@ mat4_transpose :: proc(m: Mat4) -> Mat4 {
mul :: proc(a, b: Mat4) -> Mat4 {
c: Mat4;
- for j in 0..<4 {
- for i in 0..<4 {
+ for j in 0..4 {
+ for i in 0..4 {
c[j][i] = a[0][i]*b[j][0] +
a[1][i]*b[j][1] +
a[2][i]*b[j][2] +