Statement:: Use DDA Algorithm To Generate A Line of Points (2, 3) and (7, 8)
Statement:: Use DDA Algorithm To Generate A Line of Points (2, 3) and (7, 8)
STATEMENT: Use DDA algorithm to generate a line of points (2, 3) and (7, 8)
Solution: Given That (X1, Y1)= (2, 3) (X2, Y2)= (2, 3) Initial Points: Xi = 0.5+X1 Yi = 0.5+Y1 Xi = 0.5+2=2.5 Yi = 0.5+3=3.5
Increment Value:
X increment =
=1
Y increment =
=1
trunc(X) 2 3 4 5 6 7
trunc(Y) 3 4 5 6 7 8
line
9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8
line
9 8
7
6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8