First of all, sorry if the english isn't perfect, not my main language.
I guess this problem is easy to solve but I am too dumb for that... :(
We have two rectangle side by side. We rotate them both from their center, same angle. Once we have done that, the two rectangles are partly on top of each other. What is the translation value to apply to the rectangle on the right so its left edge is "side by side" with the right edge of the rectangle on the left ?
And because it is hard to visualize, here comes two screenshots :
Before : Initial Position After: Position After Rotation What is the function that allows to translate (only horizontally) the right one in a way that its left side is on top of the right side of the rectangle on the left ,depending of the rotation angle ?