How to find a new point on rectangle based on an known point on the same?

81 Views Asked by At

enter image description here

I have rotated a rectangle a certain amount of degree and got the point(x,y)=(130,40) which was previously (152,60). Now i want to find the x,y(marked as red) value at another location based on the known value (130,40) of the rotated rectangle.

1

There are 1 best solutions below

1
On

The transformation has the form $$(x,y)\mapsto (a+x\cos\alpha-y\sin\alpha,b+y\cos\alpha+x\sin\alpha)$$ where $\alpha$ is your rotating angle and $a,b$ determine the translational part (and can be obtained from one point and image point if $\alpha$ is known).