contentToLocal, localToContent for rotation?

Corona has methods to map x, y values from local to content coordinates (and vice versa). Does it have anything similar for rotation property?

If I have an image with rotation 15, inserted in a group with rotation 30, it will give me 45 degrees rotation in “content” context. But that’s just a simple scenario.

I don’t think there is such a thing, but you could implement it something like this:

local getTotalRotation( obj ) local rot = object.rotation local parent = self.parent while( parent ) { rot = parent.rot + rot parent = self.parent end return rot end

I don’t think there is such a thing, but you could implement it something like this:

local getTotalRotation( obj ) local rot = object.rotation local parent = self.parent while( parent ) { rot = parent.rot + rot parent = self.parent end return rot end