Vaguely in the DDA algorithm, need help

I need help regarding the DDA algorithm, I got confused in the tutorial that I found on the Internet on DDA Algo, here is the link to this tutorial

http://i.thiyagaraaj.com/tutorials/computer-graphics/basic-drawing-techniques/1-dda-line-algorithm

Example:

xa,ya=>(2,2)
xb,yb=>(8,10)
dx=6
dy=8

xincrement=6/8=0.75
yincrement=8/8=1

1)     for(k=0;k<8;k++)
xincrement=0.75+0.75=1.50
yincrement=1+1=2
1=>(2,2)

2)     for(k=1;k<8;k++)
xincrement=1.50+0.75=2.25
yincrement=2+1=3
2=>(3,3)

Now I want to ask how this line appeared xincrement = 0.75 + 0.75 = 1.50, when it is theoretically written that

"If the slope is greater than 1, then the roles x of any y in the unit y of the intervals Dy = 1 and each subsequent y value is calculated. Dy = 1

m= Dy / Dx
m= 1/ (  x2-x1 )
m = 1 / ( xk+1 – xk  )

xk+1   =  xk   +  ( 1 / m )

"

he should be xincrement=x1 (which is 2) + 0.75 = 2.75

or I misunderstand this, can someone please teach me how to do this?

Thanks a lot)

+3
source share
2 answers

, .

, 0 <= slope <= 1. X. X Y. , "" Y Y Y. Y, Y. , , Y , Y.

> 1, ( ) X Y. Y, , X.

, , , .

+1

- . . , . x . .

-, DDA , - . DDA , .

-, DDA , x y . DDA , . 0 1 x 1. y 1. -1 0 x -1, -1 y -1.

Thrid, DDA , 1, . . 0 1. , , x 1, y. y - y . , y . , , y 1 x.

-, DDAs , . , Bresenham DDA, .

(2, 2) (8, 10), 8/6, 1. (2, 2). y 1 x ( , dx/dy = 6/8 =.75) x. x 2.75, 3, (3, 3) . y, x x (2.75 +.75 = 3.5). (4, 4). (5, 4), y 1, x 0,75 4,25.

?

+3

Source: https://habr.com/ru/post/1721796/


All Articles