Sin & Cos: The Programmer's Pals


Sin/Cos image from Wikipedia

In this article discusss several game programming techniques, all revolving around a central theme: the sine and cosine functions. The article will explain sine, cosine, vectors, atan2, and some useful special effects such as how to make homing missiles and how bitmap rotation works. It starts with the very basics, but covers some more advanced programming techniques.



This article comes with twelve real-life coded examples coded in C. Even though we haven't been programming in C, Processing is very C-Like, so a lot of the concepts should be a similar application. Regardless if you can apply it to your work, it is still a very interesting read.



This article will expose you to a lot of interesting techniques that can be used in any type of graphics programming.

Via Helixsoft.nl