var shearAngle = 180 / Math.PI * Math.atan2(matrix.mValueC, matrix.mValueD);
The above script will work properly only if the image has applied either rotation or shear angle.if the image has applied both rotation and shear angle in this time the above script will give wrong value. can anyone please help me to get the solution. I want to retrieve the value of shear and rotation angle using script.
Assuming that shear is to be calculated as whatever is left after deducting “rotation from horizontal” (the result of the first equation), you’ll want to start with the difference between mValueB and mValueC. So your second equation is already wrong. Beyond that, as I said first time around, you’re talking math. Folks here are typically working artists whose high-school math, if they ever had much, is probably shot. As @femkeblanco says, go ask a geometer instead.