As you may know, when a layer rotates in construct, it rotates with its axis included, so the coordinates move with it, something like this:
Now, I need a formula that, knowing the angle of rotation of the layer, tells me the visual position of a point (in the example, I would want (0,y) instead of (x,y)).
Any help would be greatly appreciated n__n!
Edit: note that the point can move freely. So I need to know the absolute position of the point of its relative position in the rotated layer.