mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
shame on me
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user