Important Formulas in This Chapter

Heres a reminder of the two main formulas introduced in this chapter.

Coordinate rotation:

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

Reverse coordinate rotation:

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


Foundation ActionScript. Animation. Making Things Move
Foundation Actionscript 3.0 Animation: Making Things Move!
ISBN: 1590597915
EAN: 2147483647
Year: 2005
Pages: 137
Authors: Keith Peters

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net