I am trying to make a re-sizable touch view with rotation in android. I re-size rectangle successfully. You can find code here
It has 4 corners. You can re-size that rectangle by dragging one of corner. But now I want to enhance that logic and want to put rotation in that code. I successfully find angle when user touch center of one of the edge of rectangle. But now problem is I can't get new position of corners so that I can redraw that rectangle and rotation is possible.
I am not very much familiar with trigonometry and mathematics.
Question is : How can I calculate 4 corners' new position based on Angle?.
Edit:
I am doing something like this.
Calculate position of rectangle lower left corner on center rotatiton
But after getting angle, four corner's coordinates I am not able to calculate. I search google last 2 days, but not succeed.
Like this..
