I never figured out trigonometry enough to solve this little problem I have.

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:

<img src="http://img707.imageshack.us/img707/5083/001sng.png" border="0" />

<img src="http://img26.imageshack.us/img26/8682/002bcp.png" border="0" />

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.