Overview
The Midpoint Circle Algorithm (Bresenham's circle algorithm) steps x from 0 to y along a single 45-degree octant of a circle of radius R, maintaining an integer decision variable d = 1 - R that tests whether the midpoint between candidate pixels (x+1, y) and (x+1, y-1) lies inside or outside x^2 + y^2 = R^2. Each computed (x, y) is mirrored across all 8 octants.