Game Development Reference
In-Depth Information
4
3 x
d. y ¼
e. y ¼j4 þ x j
Slopes
If you change the slopes of functions that involve absolute values, you still
preserve the symmetry of the lines that result. Consider, for example, the effect of
altering the value of the slope from 2
to 2. Here are the resulting functions:
f ðxÞ¼ð 2 Þj x j
j x j
1
2
f ðxÞ¼
For the first equation, when you set the slope to 2, for every 1 unit of run, you
generate 2 units of rise. On the other hand, when the slope is 2
for every 1 unit
of run, you generate only half a unit of rise. When you explore these slopes with
respect to absolute values, then the lines illustrated by Figure 7.7 result.
Figure 7.7
Slopes sustain symmetry.
 
Search WWH ::




Custom Search