diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-07 23:42:43 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-07 23:42:43 +0100 |
| commit | 4b051a0d3b9da924924ed2a28ef7c102902a880c (patch) | |
| tree | 11ac611a92c608097b1af289d71a6ac21c9b4900 /core/math.odin | |
| parent | 45353465a6d743f9c9cbca63c45877a6d294feb5 (diff) | |
`..` half closed range; `...` open range; `...` variadic syntax
Diffstat (limited to 'core/math.odin')
| -rw-r--r-- | core/math.odin | 8 |
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] + |