Matrix To Rotation In Degrees?

I’m reading rectangle positions and rotation from a CorelDraw-exported SVG file which has a matrix in the following format:

 

    rect transform=“matrix(1.02414 -0.133308 0.122628 0.942091 190.767 780.999)” width=“122” height=“20”

 

Now I’m trying to parse these values to draw like this, but they partially come up false, and in my current half-guessing approach also often NAN.  What would I need to do to convert above matrix into the proper Lua rotation in degrees?

 

What I have so far is below (the values array are the matrix values in the order of the SVG). Thanks!

 

local x = values[5]; local y = values[6] local rotation = math.acos(values[1]) if values[2] \< 0 then rotation = -rotation end rotation = math.floor( math.deg(rotation) ) rotation = rotation % 360 app.spritesHandler:createBar( math.floor(x), math.floor(y), rotation ) &nbsp;