[Math] Fix my negation operator
This commit is contained in:
parent
fcd68b8f86
commit
65823610c1
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ public struct Matrix3: Matrix {
|
|||
public prefix func -<T: Matrix>(m: T) -> T {
|
||||
var out = m
|
||||
for i in 0..<T.count {
|
||||
out[i] -= -out[i]
|
||||
out[i] = -out[i]
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue