Xiaolin Wu's line algorithm: Difference between revisions

Content deleted Content added
No edit summary
correct variables v1,v2 which should be y1,y2, and fix indentation to use tabs consistently
Line 16:
'''function''' rfpart(x)
'''return''' 1 - fpart(x)
'''function''' drawLine(x1,v1y1,x2,v2y2)
''// check that x1 < x2''
'''if x2 < x1
swap x1, x2
swap v1y1, v2y2
dx = x2 - x1
dy = y2 - y1