implement the DDA algorithm to draw aline from 0,0 to7,7
Answers
Answered by
0
Answer:
DDA Line Drawing Algorithm in C and C++
Also Read: Bresenham's Line Drawing Algorithm in C and C++
Step 1: Read the input of the 2 end points of the line as (x1, y1) & (x2, y2) such that x1 != x2 and y1 != y2.
Step 2: Calculate dx = x2 – x1 and dy = y2 – y1.
Step 4: xin = dx / step & yin = dy / step.
Explanation:
Similar questions