mat_macros: from_homogeneous_impl was using dimension of src not dst

This commit is contained in:
arturo castro 2016-01-08 10:02:06 +01:00
parent 22edb3a157
commit 4845a0790a
1 changed files with 2 additions and 2 deletions

View File

@ -682,8 +682,8 @@ macro_rules! from_homogeneous_impl(
fn from(m: &$t2<N>) -> $t<N> {
let mut res: $t<N> = ::one();
for i in 0..$dim2 {
for j in 0..$dim2 {
for i in 0..$dim {
for j in 0..$dim {
res[(i, j)] = m[(i, j)]
}
}