Foundation Actionscript 3.0 Animation: Making Things Move!

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;

Категории