Graphics Reference
In-Depth Information
Y
Translated
Original
X
Fig. 7.1. The translated shape results by adding 3 to every x -coordinate, and 1 to
every y -coordinate of the original shape.
Fig. 7.2. The scaled shape results by multiplying every x -coordinate by 2 and every
y -coordinate by 1.5.
This transform results in a horizontal scaling of 2 and a vertical scaling of
1.5, as illustrated in Figure 7.2. Note that a point located at the origin does
not change its place, so scaling is relative to the origin.
7.1.3 Reflection
To make a reflection of a shape relative to the y -axis, we simply reverse the
sign of the x -coordinate, leaving the y -coordinate unchanged
x =
x
y = y
(7.2)
 
Search WWH ::




Custom Search