dhmt

1

Click here to load reader

Upload: tu-pham

Post on 19-Jul-2015

54 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Dhmt

Thuật toán DDA

Cho đường thẳng

Y= mx+ b

M=(y2-y1)(x1-x2)

B= y1-x1m

Giả sử có (x1,y1)

Yi+1=y1+m

Thuật toán

- Nhập A,B

-