diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-25 13:32:53 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-25 13:32:53 +0100 |
| commit | f15825d2c62b15a46eb6b383abbcd4e823b78f12 (patch) | |
| tree | 56fd40acc14da4a5c8b4bdf24954bd59eeaeed80 /core/runtime | |
| parent | a440d8d812223961f0934aefecaef4975a604c43 (diff) | |
Fix typo
Diffstat (limited to 'core/runtime')
| -rw-r--r-- | core/runtime/core_builtin_matrix.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/runtime/core_builtin_matrix.odin b/core/runtime/core_builtin_matrix.odin index 1ed19f484..7f74dcfc9 100644 --- a/core/runtime/core_builtin_matrix.odin +++ b/core/runtime/core_builtin_matrix.odin @@ -117,12 +117,12 @@ matrix4x4_adjugate :: proc(x: $M/matrix[4, 4]$T) -> (y: M) { } cofactor :: proc(m: $M/matrix[4, 4]$T, row, column: i32) -> (cofactor: T) { sign: T = 1 if (row + column) % 2 == 0 else -1 - return sign * matrix4x4_minor(m, row, column) + return sign * minor(m, row, column) } for i in 0..<4 { for j in 0..<4 { - y[i, j] = matrix4x4_cofactor(x, i, j) + y[i, j] = cofactor(x, i, j) } } return |