Assorted maths for game development.