In this article, I will explain my approach to building a camera class that manages panning and zooming in a 2d game canvas.
We look at the underlying mathematical theory, create formulas, and then apply it to code.