Best approximate circles on integer grids

From MaRDI portal





The problem of drawing an approximate circle on an integer x-y grid has a unique best solution in practical cases. If the center is (0,0) and the square of the radius \((r^ 2)\) is integral, then each grid line that intersects the circle contains near each intersection a unique grid point that simultaneously minimizes (1) the residual \(x^ 2+y^ 2-r^ 2,\) (2) Euclidean distance to the circle, and (3) displacement along the grid line from the intersection. Thus the set of such minimizing points is the best approximation to the circle in several natural senses. Criteria (1)-(3) collectively, but not severally, define unique approximate circles when half-integer center coordinates and integer squared diameters \((4r^ 2)\) are admitted. In other cases the criteria may disagree. Simple, efficient, all-integer algorithms for drawing circles and arcs with approximately known endpoints follow from the analysis. Diophantine problems arise in connection with the occasional appearance of sharp (90\(\circ)\) corners in the resulting approximations.











This page was built for publication: Best approximate circles on integer grids

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q3707247)