The Beauty of Bresenham's Algorithm
free.pages.at
The Beauty of Bresenham's Algorithm
1–10 of 50 posts
Re: The Beauty of Bresenham's Algorithm
#2"The Bresenham line algorithm is an algorithm which determines which points in an n-dimensional raster should be plotted in order to form a close approximation to a straight line between two given points. It is commonly used to draw lines on a computer screen, as it uses only integer addition, subtraction and bit shifting, all of which are very cheap operations in standard computer architectures. It is one of the earliest algorithms developed in the field of computer graphics. A minor extension to the original algorithm also deals with drawing circles."
Re: The Beauty of Bresenham's Algorithm
#3Re: The Beauty of Bresenham's Algorithm
#4Bresenham's Algorithm is a useful argument when someone suggests that software patents are a good thing. How far back would the progress of computer graphics have been set if Bresenham or his employer had claimed ownership of this idea?
Re: The Beauty of Bresenham's Algorithm
#5Re: The Beauty of Bresenham's Algorithm
#6Why do people write non-conditional loops as "for(;;)" instead of "while(1)"?
#define ever (;;)
for ever {...}
;-)Re: The Beauty of Bresenham's Algorithm
#7Why do people write non-conditional loops as "for(;;)" instead of "while(1)"?
Re: The Beauty of Bresenham's Algorithm
#8His discrete line equation is relatively beautiful (it is easily extractible from Bresenham's algorithm however): 0 ≤ ax − by < ω
Re: The Beauty of Bresenham's Algorithm
#9Why do people write non-conditional loops as "for(;;)" instead of "while(1)"?
for {
...
}Re: The Beauty of Bresenham's Algorithm
#10Why do people write non-conditional loops as "for(;;)" instead of "while(1)"?
Because while(1) still has a condition that is checked on every loop iteration when optimizations are disabled. for(;;) can be read as "forever".
http://stackoverflow.com/questions/885908/while-1-vs-for-is-...