Slide the theta variable. This project is showing some of trigonometry, which is a special form of geometry with triangles. The functions I've provided are sin() and cos(), and even though there are tons more, they are the simplest ones to simulate.
All credit to math. One love one fave from @MASBUD! 12/23/14:Another love from @leszpio!