Merge pull request #168 from arturoc/master

mat_macros: from_homogeneous_impl was using dimension of src not dst
This commit is contained in:
Sébastien Crozet 2016-01-10 16:12:44 +01:00
commit ca6026e5cb
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)]
}
}