Three integer algorithms drawing circles

Version 1.0.0.0 (2.83 KB) by Xenya
Midpoint and two versions of Bresenham algorithm for drawing circle.
322 Downloads
Updated 7 Feb 2013

View License

bresenham_circle => code by CHANDAN KUMAR modified to work as a function, returning X and Y coordinates of circle point with zero origin

bresenham_circle2 => algorithm from Wikipedia (http://en.wikipedia.org/wiki/Midpoint_circle_algorithm)

midpoint_circle => midpoint algorithm from http://groups.csail.mit.edu/graphics/classes/6.837/F98/Lecture6/circle.html

circle_test => explains why i had to look for the third algorithm, and the first two were not good enough :)

Cite As

Xenya (2024). Three integer algorithms drawing circles (https://www.mathworks.com/matlabcentral/fileexchange/40212-three-integer-algorithms-drawing-circles), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Directed Graphs in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0