Merge pull request #168 from arturoc/master
mat_macros: from_homogeneous_impl was using dimension of src not dst
This commit is contained in:
commit
ca6026e5cb
|
@ -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)]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue