Hi all,<br><br> Is there a way to get the different components (rotation, scaling and shear) from a 2D affine matrix.<br>I have a method for getting the rotation and scaling but am not sure how to get the shear. The method I am using<br>
to get the rotation and scaling is:<br><br>Let A be the affine matrix.<br><br>USV' = svd(A);<br>R = UV';<br><br>Scale X = S[0,0]<br>Scale Y = S[1,1]<br>Angle = asin(R[1,0])<br><br>Is this the right way to do it ? Also I would appreciate if someone can point me to how to get the shear factors.<br>
<br>Thanks!<br><br><br><br><br><br>