Find the Rotation and Skew of a Matrix transformation
问题 I have the the following Transform Matrix in CSS // rotate the element 60deg element.style.transform = "matrix(0.5,0.866025,-0.866025,0.5,0,0)" And i can find the rotation using this... // where a = [0.710138,0.502055,-0.57735,1,0,0] var rotation = ((180/Math.PI) * Math.atan2( ((0*a[2])+(1*a[3])),((0*a[0])-(1*a[1]))) - 90 console.log(rotation); // ~60 Similarly for skew if... // skew(30deg,-50deg) element.style.transform = "matrix(1,-1.19175,0.57735,1,0,0)" var skewY = ((180/Math.PI) * Math