corrected one Invert call to Inverse in line 215

This commit is contained in:
nico 2021-11-27 07:36:58 +11:00
parent d406904ee6
commit 3b9e18cf4f
1 changed files with 2 additions and 2 deletions

View File

@ -212,13 +212,13 @@ template <class S,class RotationType> void Similarity<S,RotationType>::FromMatri
tra[2] = t.ElementAt(2, 3);t[2][3] = 0.0;
rot.FromMatrix(t);
Invert(t);
t=Inverse(t);
tra = t * tra;
tra/= sca;
}
template <class S,class RotationType> Similarity<S,RotationType> &Invert(Similarity<S,RotationType> &a) {
template <class S,class RotationType> Similarity<S,RotationType> &Invert(Similarity<S,RotationType> &a) {
a.rot.Invert();
a.sca = 1/a.sca;
a.tra = a.rot.Rotate(-a.tra)*a.sca;