Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

enter image description here ok... lets forget about my creative(?) drawing and wrting first.

I have an rectangular image. There are four of image points which re sizes the image when user drags it.

$4$ points : $(0, 104)$, $(93, 104)$, $(0, 0)$, $(93, 0)$

It seems each point working fine but problem happens if user rotates the image. As the image is rotated, the points also should be repositioned.But I am not sure how to find changed positions.

If I rotates the image $30$ degrees, how can I get new repositioned value of for positions?

For example $(0, 104)$ $\dashrightarrow $ after 30 degree change $\dashrightarrow$ $( ?, ?)$

I am not really familiar with this kind of problems. Can you guys at least give me a hint or guide me where to start to solve this problem?

Thanks in advance.

share|cite|improve this question
1) I assume the "offset" is the point you're rotating the image around? 2) Are you familiar with rotation matrices? (If not I suggest you google it; wikipedia has a nice entry.) – Gyu Eun Lee Jan 15 '13 at 7:26
yes... you are right offset is the center point I roatating the image around. thanks for the suggest. I am trying to figure out rotation matrices but already had headache :( – Seho Lee Jan 15 '13 at 7:47
this should be helpful – Adam Jan 15 '13 at 7:52
adam/// thanks a lot dude! – Seho Lee Jan 15 '13 at 7:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.