O'Reilly logo

Beginning Math and Physics for Game Programmers by Wendy Stahler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Properties of Lines

Now that we've defined the equation of a line, let's look at its properties a little more closely. One of the most important elements of a line is its slope, or steepness. Figure 1.12 shows a hill (a straight line) that rises steadily at a rate of 50m of vertical “rise” for each 100m of horizontal “run.”

Figure 1.12. A hill represented by a straight line.

The steepness of this incline is measured by the ratio of its rise to its run, which in this case is 50/100, or 50%. This same hill can be mathematically represented by the linear equation ½xy = c, as shown in Figure 1.13.

Figure 1.13. Line ½x – y = c with slope ½.

Look ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required