Game Development Reference

In-Depth Information

1

y

1

−

1

(0,0)

x

Figure 11.1
A standard

two-dimensional Cartesian

coordinate system, or x-y axis.

−

1

1

−

−
1

1

(0,0)

x

Flash stage

Figure 11.2
Flash
'
s vertically

inverted coordinate system.

1

y

You have probably heard of the three most common trig func-

tions: sine (sin), cosine (cos), and tangent (tan). They each relate

to different sides of a triangle. The longest side of the triangle (and

in a right triangle, the side opposite the right angle) is the
hypote-

nuse
(hyp). In
Fig. 11.3
,werelatetotheothertwosidesofthe