mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
shame on me
This commit is contained in:
parent
d34c5ef509
commit
2e46e9f2b4
@ -911,7 +911,11 @@ Transform<Scalar,Dim,Mode>::inverse(TransformTraits hint) const
|
|||||||
}
|
}
|
||||||
// translation and remaining parts
|
// translation and remaining parts
|
||||||
res.template corner<Dim,1>(TopRight) = - res.template corner<Dim,Dim>(TopLeft) * translation();
|
res.template corner<Dim,1>(TopRight) = - res.template corner<Dim,Dim>(TopLeft) * translation();
|
||||||
res.makeAffine();
|
if(int(Mode)!=int(AffineCompact))
|
||||||
|
{
|
||||||
|
res.template block<1,Dim>(Dim,0).setZero();
|
||||||
|
res.coeffRef(Dim,Dim) = 1;
|
||||||
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user