Digital differential analyzer (graphics algorithm): Difference between revisions

Content deleted Content added
ClueBot (talk | contribs)
Reverting possible vandalism by 122.144.115.192 to version by MattieTK. False positive? report it. Thanks, User:ClueBot. (150758) (Bot)
No edit summary
Line 1:
{{Cleanup|date=August 2007}}{{Refimprove|date=August 2007}}{{context}}
 
In [[Computer graphics]], '''Digital Differential Analyzer (DDA)''' is an algorithm used forto generatingdetermine pixelswhich usingpoints need to be plotted in order to draw a straight line formed bybetween two given points. It employees the equation for line representation (example: y=mx+c), then scan through an axis. Each scan it would determine the value on the other axis using the equation, this way the proper pixel can be located.
 
The DDA method is not very efficient due to the need for division and rounding. [[Bresenham's line algorithm]] is a more efficient method to draw lines because it uses only addition, subtraction and bit shifting.