3D math primer for graphics and game development