Professional Documents
Culture Documents
Tabelas de Transformações Lineares
Tabelas de Transformações Lineares
There are many ways to transform the vector spaces R 2 and R 3 , some of the most
important of which can be accomplished by matrix transformations using the methods
introduced in Section 1.8. For example, rotations about the origin, reflections about
lines and planes through the origin, and projections onto lines and planes through the
origin can all be accomplished using a linear operator TA in which A is an appropriate
2 × 2 or 3 × 3 matrix.
Reflection Operators Some of the most basic matrix operators on R 2 and R 3 are those that map each point into
its symmetric image about a fixed line or a fixed plane that contains the origin; these are
called reflection operators. Table 1 shows the standard matrices for the reflections about
the coordinate axes in R 2 , and Table 2 shows the standard matrices for the reflections
about the coordinate planes in R 3 . In each case the standard matrix was obtained using
the following procedure introduced in Section 1.8: Find the images of the standard basis
vectors, convert those images to column vectors, and then use those column vectors as
successive columns of the standard matrix.
Tabela 1
y
(x, y)
Reflexão no eixo x
x x T (e1 ) = T (1, 0) = (1, 0) 1 0
T (e2 ) = T (0, 1) = (0, −1) 0 −1
T (x, y) = (x, −y) T(x)
(x, –y)
y
Reflexão no eixo
y T (e1 ) = T (1, 0) = (−1, 0) −1 0
(–x, y) (x, y)
T (e2 ) = T (0, 1) = (0, 1) 0 1
T (x, y) = (−x, y) T(x) x x
y y=x
(y, x)
Reflexão na reta T(x)
y=x T (e1 ) = T (1, 0) = (0, 1) 0 1
x T (e2 ) = T (0, 1) = (1, 0) 1 0
T (x, y) = (y, x) (x, y) x
Tabela 2
(x, y, z) ⎡ ⎤
Reflexão no plano x T (e1 ) = T (1, 0, 0) = (1, 0, 0) 1 0 0
xy y ⎢ ⎥
T (e2 ) = T (0, 1, 0) = (0, 1, 0) ⎣0 1 0⎦
T (x, y, z) = (x, y, −z) T (e3 ) = T (0, 0, 1) = (0, 0, −1) 0 0 −1
x T(x)
(x, y, –z)
z
⎡ ⎤
Reflexão no plano (–x, y, z) T (e1 ) = T (1, 0, 0) = (−1, 0, 0) −1 0 0
yz
T(x) ⎢ ⎥
y T (e2 ) = T (0, 1, 0) = (0, 1, 0) ⎣ 0 1 0⎦
(x, y, z)
T (x, y, z) = (−x, y, x T (e3 ) = T (0, 0, 1) = (0, 0, 1) 0 0 1
z) x
Projection Operators Matrix operators on R 2 and R 3 that map each point into its orthogonal projection onto
a fixed line or plane through the origin are called projection operators (or more precisely,
orthogonal projection operators). Table 3 shows the standard matrices for the orthogonal
projections onto the coordinate axes in R 2 , and Table 4 shows the standard matrices for
the orthogonal projections onto the coordinate planes in R 3 .
Tabela 3
y
Projeção ortogonal (x, y)
sobre o eixo x x T (e1 ) = T (1, 0) = (1, 0) 1 0
T (e2 ) = T (0, 1) = (0, 0) 0 0
T (x, y) = (x, 0) (x, 0) x
T(x)
y
Projeção ortogonal (0, y) (x, y)
sobre o eixo y T (e1 ) = T (1, 0) = (0, 0) 0 0
T(x) x T (e2 ) = T (0, 1) = (0, 1) 0 1
T (x, y) = (0, y) x
Tabela 4
z
⎡ ⎤
Projeção ortogonal T (e1 ) = T (1, 0, 0) = (1, 0, 0) 1 0 0
sobre o plano xy (x, y, z) ⎢ ⎥
x
y T (e2 ) = T (0, 1, 0) = (0, 1, 0) ⎣0 1 0⎦
T (x, y, z) = (x, y, 0) T (e3 ) = T (0, 0, 1) = (0, 0, 0) 0 0 0
T(x)
x (x, y, 0)
z
⎡ ⎤
Projeção ortogonal T (e1 ) = T (1, 0, 0) = (1, 0, 0) 1 0 0
(x, 0, z) (x, y, z) ⎢ ⎥
sobre o plano xz x T (e2 ) = T (0, 1, 0) = (0, 0, 0) ⎣0 0 0⎦
T(x) y
T (x, y, z) = (x, 0, z) T (e3 ) = T (0, 0, 1) = (0, 0, 1) 0 0 1
x
z
(0, y, z) ⎡ ⎤
Projeção ortogonal T(x) T (e1 ) = T (1, 0, 0) = (0, 0, 0) 0 0 0
(x, y, z) ⎢ ⎥
sobre o plano yz T (e2 ) = T (0, 1, 0) = (0, 1, 0) ⎣0 1 0⎦
x y
T (x, y, z) = (0, y, z) T (e3 ) = T (0, 0, 1) = (0, 0, 1) 0 0 1
x
Rotation Operators Matrix operators on R 2 and R 3 that move points along arcs of circles centered at the
origin are called rotation operators. Let us consider how to find the standard matrix for
the rotation operator T : R 2 →R 2 that moves points counterclockwise about the origin
through a positive angle θ . As illustrated in Figure 4.9.1, the images of the standard
basis vectors are
T (e1 ) = T (1, 0) = (cos θ, sin θ) and T (e2 ) = T (0, 1) = (− sin θ, cos θ )
so it follows from Formula (14) of Section 1.8 that the standard matrix for T is
cos θ − sin θ
A = [T (e1 ) | T (e2 )] =
sin θ cos θ
y
T e2
(–sen θ, cos θ)
(cos θ, sen θ)
u 1 T
1
u x
e1
Figure 4.9.1
In keeping with common usage we will denote this operator by Rθ and call
cos θ − sin θ
Rθ = (1)
sin θ cos θ
the rotation matrix for R 2 . If x = (x, y) is a vector in R 2 , and if w = (w1 , w2 ) is its
In the plane, counterclockwise
image under the rotation, then the relationship w = Rθ x can be written in component
angles are positive and clock-
form as
wise angles are negative. The w1 = x cos θ − y sin θ
rotation matrix for a clockwise (2)
w2 = x sin θ + y cos θ
rotation of −θ radians can be
obtained by replacing θ by −θ These are called the rotation equations for R2. These ideas are summarized in Table 5.
in (1). After simplification this
Tabela 5
yields
cos θ sin θ Operador Ilustração Equações de rotação Matriz canônica
R−θ =
− sin θ cos θ Rotação anti- y (w1, w2)
horária em torno
w w1 = x cos θ − y sen θ cos θ − sen θ
da origem por um
ângulo θ (x, y) w2 = x sen θ + y cos θ sen θ cos θ
θ x
x
E X A M P L E 1 A Rotation Operator
Find the image of x = (1, 1) under a rotation of π/6 radians (= 30◦ ) about the origin.
Solution It follows from (1) with θ = π/6 that
√3
√3−1
2
− 21 1 2 0.37
Rπ/6 x = √ = √ ≈
1 3 1 1+ 3 1.37
2 2 2
Rotations in R 3 A rotation of vectors in R 3 is commonly described in relation to a line through the origin
called the axis of rotation and a unit vector u along that line (Figure 4.9.2a). The unit
vector and what is called the right-hand rule can be used to establish a sign for the angle of
rotation by cupping the fingers of your right hand so they curl in the direction of rotation
and observing the direction of your thumb. If your thumb points in the direction of u,
then the angle of rotation is regarded to be positive relative to u, and if it points in the
direction opposite to u, then it is regarded to be negative relative to u (Figure 4.9.2b).
z z Positive z Negative
Axis of rotation rotation rotation
x l
u
θ
u
w y y y
x x x
For rotations about the coordinate axes in R 3 , we will take the unit vectors to be i, j,
and k, in which case an angle of rotation will be positive if it is counterclockwise looking
toward the origin along the positive coordinate axis and will be negative if it is clockwise.
Table 6 shows the standard matrices for the rotation operators on R 3 that rotate each
vector about one of the coordinate axes through an angle θ . You will find it instructive
to compare these matrices to that in Table 5.
Tabela 6
Rotação anti-horária ⎡ ⎤
em torno do eixo x w1 = x 1 0 0
positivo pelo ângulo θ
y
w2 = y cos θ − z sen θ ⎢ ⎥
⎣0 cos θ − sen θ⎦
w w3 = y sen θ + z cos θ 0 sen θ cos θ
x
θ
z
Rotação anti-horária em ⎡ ⎤
torno do eixo y positivo w1 = x cos θ + z sen θ cos θ 0 sen θ
pelo ângulo θ ⎢ ⎥
x w2 = y ⎣ 0 1 0 ⎦
y w3 = −x sen θ + z cos θ
θ − sen θ 0 cos θ
x w
Rotação anti-horária ⎡ ⎤
θ cos θ − sen θ 0
em torno do eixo z w1 = x cos θ − y sen θ
⎢ ⎥
positivo pelo ângulo θ x w w2 = x sen θ + y cos θ ⎣ sen θ cos θ 0⎦
w3 = z 0 0 1
y
For completeness, we note that the standard matrix for a counterclockwise rotation
through an angle θ about an axis in R 3 , which is determined by an arbitrary unit vector
u = (a, b, c) that has its initial point at the origin, is
⎡ ⎤
a 2 (1 − cos θ) + cos θ ab(1 − cos θ) − c sin θ ac(1 − cos θ) + b sin θ
⎢ ⎥
⎣ab(1 − cos θ) + c sin θ b2 (1 − cos θ) + cos θ bc(1 − cos θ) − a sin θ ⎦ (3)
ac(1 − cos θ) − b sin θ bc(1 − cos θ) + a sin θ c2 (1 − cos θ) + cos θ
The derivation can be found in the book Principles of Interactive Computer Graphics, by
W. M. Newman and R. F. Sproull (New York: McGraw-Hill, 1979). You may find it
instructive to derive the results in Table 6 as special cases of this more general result.
Dilations and Contractions If k is a nonnegative scalar, then the operator T(x) = k x on R 2 or R 3 has the effect of
increasing or decreasing the length of each vector by a factor of k . If 0 ≤ k < 1 the
operator is called a contraction with factor k , and if k > 1 it is called a dilation with
factor k (Figure 4.9.3). Tables 7 and 8 illustrate these operators. If k = 1, then T is the
identity operator.
x T(x) = kx
x
T(x) = kx
Tabela 7
y (0, 1)
Contração de x (x, y) (0, k)
fator k em R2
T(x) (kx, ky)
(0 ≤ k < 1) x
(1, 0) (k, 0)
k 0
(0, k)
0 k
y T(x) (kx, ky) (0, 1)
Dilatação de
facor k em R2 x (x, y)
(k > 1) x
(1, 0) (k, 0)
Tabela 8
Ilustração Matriz
Operador T (x, y, z) = (kx, ky, kz) canônica
Contração de x (x, y, z)
fator k em R3 T(x) (kx, ky, kz)
(0 ≤ k < 1)
y ⎡ ⎤
k 0 0
x ⎢ ⎥
⎣0 k 0⎦
z
0 0 k
(kx, ky, kz)
T(x)
Dilatação de
fator k em R3 x (x, y, z)
y
(k > 1)
x
Expansions and In a dilation or contraction of R 2 or R 3 , all coordinates are multiplied by a nonnegative
Compressions factor k . If only one coordinate is multiplied by k , then, depending on the value of k ,
the resulting operator is called a compression or expansion with factor k in the direction
of a coordinate axis. This is illustrated in Table 9 for R 2 . The extension to R 3 is left as
an exercise.
Tabela 9
y
Compressão na (kx, y) (0, 1) (0, 1)
direção de x de fator T(x)
(x, y)
k em R2 x
x
(0 ≤ k < 1) (1, 0) (k, 0)
k 0
0 1
y
Expansão na direção (x, y) (kx, y) (0, 1) (0, 1)
x de fator x
k em R2 T(x)
x
(k > 1) (1, 0) (k, 0)
y
Compressão na (0, 1)
direção y de fator k (x, y) (0, k)
x
em R2 (x, ky)
x
(0 ≤ k < 1) (1, 0) (1, 0)
T(x) 1 0
0 k
y
(x, ky) (0, k)
Expansão na direção (0, 1)
T(x) (x, y)
y com fator
k em R2 x
x
(k > 1) (1, 0) (1, 0)
Shears A matrix operator of the form T (x, y) = (x + ky, y) translates a point (x, y) in the
xy -plane parallel to the x -axis by an amount ky that is proportional to the y -coordinate
of the point. This operator leaves the points on the x -axis fixed (since y = 0), but
as we progress away from the x -axis, the translation distance increases. We call this
operator the shear in the x-direction by a factor k. Similarly, a matrix operator of the
form T (x, y) = (x, y + kx) is called the shear in the y-direction by a factor k. Table 10,
which illustrates the basic information about shears in R 2 , shows that a shear is in the
positive direction if k > 0 and the negative direction if k < 0.
Tabela 10
(k, 1) (k, 1)
Cisalhamento na (0, 1)
direção do eixo x por
1 k
um fator k em R2 0 1
T (x, y) = (x + ky, y) (1, 0) (1, 0) (1, 0)
(k > 0) (k < 0)
y y y y
3 3 3 3
2 2 2 2
1 1 1 1
x x x x
0 1 2 3 –2 –1 0 1 0 1 2 3 0 1 2 3
Figure 4.9.4 A1 A2 A3 A4
Orthogonal Projections In Table 3 we listed the standard matrices for the orthogonal projections onto the coordi-
onto LinesThrough the nate axes in R 2 . These are special cases of the more general matrix operator TA : R 2 →R 2
Origin that maps each point into its orthogonal projection onto a line L through the origin that
makes an angle θ with the positive x -axis (Figure 4.9.5). In Example 4 of Section 3.3
y we used Formula (10) of that section to find the orthogonal projections of the standard
basis vectors for R 2 onto that line. Expressed in matrix form, we found those projections
x L
to be
cos2 θ sin θ cos θ
T(x) T (e1 ) = and T (e2 ) =
sin θ cos θ sin2 θ
θ x Thus, the standard matrix for TA is
1
cos2 θ sin θ cos θ cos2 θ sin 2θ
A = [T (e1 ) | T (e2 )] = = 2
Figure 4.9.5 sin θ cos θ sin2 θ 1
2
sin 2θ sin2 θ