Remove comment and nested unsafe block
This commit is contained in:
parent
c8f3f1919a
commit
1fbe5203e1
1 changed files with 6 additions and 11 deletions
|
@ -1486,9 +1486,6 @@ pub impl<T:Copy Float Sign> Mat4<T>: Matrix<T, Vec4<T>> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// We need to use an unsafe block in order to use these inpure
|
|
||||||
// functions. This *should* be ok because A and I are never
|
|
||||||
// exposed to the outside world.
|
|
||||||
unsafe {
|
unsafe {
|
||||||
// Swap columns i1 and j in A and I to
|
// Swap columns i1 and j in A and I to
|
||||||
// put pivot on diagonal
|
// put pivot on diagonal
|
||||||
|
@ -1503,10 +1500,8 @@ pub impl<T:Copy Float Sign> Mat4<T>: Matrix<T, Vec4<T>> {
|
||||||
// doing identical ops to I
|
// doing identical ops to I
|
||||||
for uint::range(0, 4) |i| {
|
for uint::range(0, 4) |i| {
|
||||||
if i != j {
|
if i != j {
|
||||||
unsafe {
|
I.col_mut(i).sub_self_v(&I[j].mul_t(A[i][j]));
|
||||||
I.col_mut(i).sub_self_v(&I[j].mul_t(A[i][j]));
|
A.col_mut(i).sub_self_v(&A[j].mul_t(A[i][j]));
|
||||||
A.col_mut(i).sub_self_v(&A[j].mul_t(A[i][j]));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue