Angel and Shreiner: Interactive Computer Graphics, Seventh
Edition
Chapter 2 Solutions
2.2 Each iteration removes the central triangle of the four created by
subdivision. If we start with an equilateral triangle, the area is reduced by
3/4 by each iteration. Hence, in the limit we have no area left. If we
consider the perimeter, again starting with an equilateral triangle, we find
2.8 The subtractive colors are often called the complementary colors.
Suppose each color in the RGB system can be written as the triplet (r,g,b)
where each value is between 0 and 1. Then, the complement of the color
2.9 We can solve this problem separately in the xand ydirections. The
transformation is linear, that is xs=ax +b, ys=cy +d. We must
maintain proportions, so that xsin the same relative position in the
viewport as xis in the window, hence
x−xmin
xmax −xmin
=xs−u
w,
ymax −ymin
2.10 The biggest advantage of relative positioning is that it corresponds to
the way we think. We use terms such as “in front of,” “next to,”, “to the
right,” “forward,” and “back” in speech to describe the location of objects.
1