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

Plotting Sine Values

Figure 12.15 illustrates what happens if you calculate the sine values of the angles depicted in Figure 12.14. To make it so that the graph provides a fuller representation of the way that the values fluctuate from positive to negative, the range has been extended beyond that of a single rotation of a circle. The extension of the range does not affect the overall pattern.

Figure 12.15. When you plot sine values, you create a periodic pattern that fluctuates evenly from 1 to −1 on the y axis.

The overall pattern assumes a value of 0 at the origin—which represents an angle of 0. If you move to the right, ...

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