Game Development Reference
In-Depth Information
Table 6.1 The Slope-Intercept Equation
Item
Discussion
y ¼ mx þ b
The standard way you can express the equation. This is a linear equation if you
generate range values (y) using domain values (x).
f(x) ¼ mx þ b
You can designate the equation as a function.
Graphical form
The graph of the slope-intercept equation is a straight line.
m
The constant m designates the slope of the line.
b
The constant b designates the point at which the line crosses the y axis of the
Cartesian plane. You refer to this point as the y-intercept.
(0,b)
If you want to designate the position of the y-intercept using an ordered pair, then
you set the domain value (x) to 0 and assign b to the domain value (y).
Figure 6.2
The constant m establishes how much the line rises as it extends relative to the x axis.
 
Search WWH ::




Custom Search