Content deleted Content added
Mindmatrix (talk | contribs) m minor cleanup and links |
|||
Line 19:
The 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.
Considering a line with
: <math>y_{k+1} = y_k + m</math>
Subscript k takes integer values starting from 0, for the 1st point and increases by 1 until endpoint is reached.
|