Digital differential analyzer (graphics algorithm): Difference between revisions

Content deleted Content added
Line 18:
where ''m'' represents the slope of the line and ''c'' is the y intercept. In fact any two consecutive point(x,y) lying on this line segment should satisfy the equation.
 
== Algorithm Tuzya AAI la ==
A linear DDA starts by calculating the smaller of dy or dx for a unit increment of the other. A line is then sampled at unit intervals in one coordinate and corresponding integer values nearest the line path are determined for the other coordinate.