Xiaolin Wu's line algorithm: Difference between revisions
m
→{{header|Sidef}}: minor code sim
m (→{{header|Sidef}}: minor code simplifications) |
m (→{{header|Sidef}}: minor code sim) |
||
Line 1,741:
# handle the endpoints
for x,y in [[x0, y0], [x1, y1]]
var xend = int(x + 0.5);
var yend = (y + gradient*(xend-x));
|