One of the most daunting aspects of game development for many people is the mathematics involved. The following are a collection of recipes that go into detail on how to perform a number of common math related tasks. Each example ships with at least one working demonstration application (written in JavaScript using EaselJS), with complete source code. Don’t worry if your language of choice is C++, C# or Java, the JavaScript code is easily ported to any C derived language. In every case, the code is written to favor readability over performance.