topical media & game development

talk show tell print

math -- animation 10

math(s) / tutorial(s)

coordinate rotation(s)



  x1 = Math.cos(angle) * x - Math.sin(angle) * y;
  y1 = Math.cos(angle) * y + Math.sin(angle) * x;
  

reverse coordinate rotation(s)



  x1 = Math.cos(angle) * x + Math.sin(angle) * y;
  y1 = Math.cos(angle) * y - Math.sin(angle) * x;
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.