Xiaolin Wu's line algorithm: Difference between revisions

Content deleted Content added
Bluebot (talk | contribs)
m Robot updating {{Journal reference issue}} with {{Journal reference}}
No edit summary
Line 16:
'''function''' rfpart(x)
'''return''' 1 - fpart(x)
'''function''' drawLine(x1,v1,x2,v2)
''// check that x1 < x2''
'''if x2 < x1
swap x1, x2
swap v1, v2
dx = x2 - x1
dy = y2 - y1