In addition to the basic math commands, random numbers, and date/time commands, DarkBASIC also features a set of advanced math commands for trigonometry. However, this is a computer-programming book, not a geometry book, so I don’t have time to explain what all of these commands are used for or exactly how to use them. For instance, while it might not be practical to draw a circle one pixel at a time, you certainly could use circular formulas to move objects around on the screen in a realistic manner using curves and circles.

Sine is the first and most common of the functions associated with trigonometry. Given a section of a circle that resembles a piece of pie, you have an angle associated with that piece, ...

Start Free Trial

No credit card required