corrected one Invert call to Inverse in line 215
This commit is contained in:
parent
d406904ee6
commit
3b9e18cf4f
|
|
@ -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;
|
tra[2] = t.ElementAt(2, 3);t[2][3] = 0.0;
|
||||||
rot.FromMatrix(t);
|
rot.FromMatrix(t);
|
||||||
|
|
||||||
Invert(t);
|
t=Inverse(t);
|
||||||
tra = t * tra;
|
tra = t * tra;
|
||||||
tra/= sca;
|
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.rot.Invert();
|
||||||
a.sca = 1/a.sca;
|
a.sca = 1/a.sca;
|
||||||
a.tra = a.rot.Rotate(-a.tra)*a.sca;
|
a.tra = a.rot.Rotate(-a.tra)*a.sca;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue