Is there a way to calculate 3D rotation on X and Y axis from a 4x4 matrix
问题 First of all, I am not a mathematical expert at all. Please be tolerant to my mathematical mistakes and correct me where necessary, I'd love to learn. I have a cube which is rotating using css animations with transform: matrix3d(4x4). I can also manually rotate the cube, converting user actions to the same matrix3d transformations. What I want is a rotating cube with css when the user stops interacting that starts from where the user left it. This is something I am successfully doing by