DDA Algorithm in Computer Graphics - Webeduclick.com
DDA Algorithm in Computer Graphics - Webeduclick.com
com
Webeduclick.com
Computer Science Tutorials
Now let us consider the equation of the line as: CONTENT & LINKS
Verified by Sur.ly
y=mx+c
2024
where m represents the slope of the line and c is the
y-intercept. This slope can be expressed as-
Related Posts
m= (yend – ystart)/(xend – ystart)
Computer
DDA Algorithm: Graphics
1. Read the line endpoints (x1, y1) and (x2, y2)
2. Δx=| x2 – x1 |
Δy=| y2 – y1 |
3. if(Δx≥ Δy) then
length=Δx
else
length=Δy
4. Select the raster unit,
Δx= (x2 – x1)/length
https://webeduclick.com/dda-algorithm-in-computer-graphics/ 1/3
12/21/24, 10:54 AM DDA Algorithm in Computer Graphics - Webeduclick.com
← Previous Next →
ABOUT US
https://webeduclick.com/dda-algorithm-in-computer-graphics/ 3/3