fixed ApplySimilarity when a scaling factor is present

This commit is contained in:
Paolo Cignoni 2011-06-15 12:32:19 +00:00
parent 09e0ccc62c
commit 7bb11892bb
1 changed files with 3 additions and 0 deletions

View File

@ -511,6 +511,7 @@ void Shot<S, RotationType>::ApplySimilarity(const Matrix44<S> & M)
Extrinsics.rot.ElementAt(3,0) = 0;
Extrinsics.rot.ElementAt(3,1) = 0;
Extrinsics.rot.ElementAt(3,2) = 0;
Extrinsics.rot.ElementAt(3,3) = 1;
}
/// Given a similarity transformation such that p' = s R p + T modifies the reference frame accordingly.
@ -547,6 +548,8 @@ void Shot<S, RotationType>::ApplySimilarity(const Similarity<S> & Sm)
Extrinsics.rot.ElementAt(3,0) = 0;
Extrinsics.rot.ElementAt(3,1) = 0;
Extrinsics.rot.ElementAt(3,2) = 0;
Extrinsics.rot.ElementAt(3,3) = 1;
}