O'Reilly logo

Beginning Pre-Calculus for Game Developers by Boris Meltreger, John P. Flynt

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

Using Visual Formula

Use Visual Formula to implement a linear equation involving an absolute value. Toward this end, generate a graph that shifts the vertex of the graph to the left on the x axis 4 units. Here is the equation that accomplishes this task:

y = |4 + x|

To implement the equation, refer to Figure 7.11 and use the following steps:

  1. Double click the menu item for absolute values (|| Abs). Then click in the equation composition area to position the absolute value bars. Use the mouse cursor to pull the bars for the absolute value area far enough apart to accommodate two value fields and a plus sign (see Figure 7.11).

  2. Click the Value menu item. Position the field just to the right of the left absolute value bar. Click in the field and type ...

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