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

I asked this question at StackOverflow, maybe because it's all about math, I don't get a working solution.

I'm actually trying to get the image dimension after rotation using canvas with a certain angle in Javascript.

enter image description here

share|cite|improve this question

$200 \cos(30^\circ) + 80 \sin (30^\circ) $ by $200 \sin(30^\circ) + 80 \cos (30^\circ) $ .

$\cos(30^\circ) = \frac{\sqrt{3}}{2}$ while $\sin(30^\circ) = \frac{1}{2}$.

share|cite|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.