Talk:Xiaolin Wu's line algorithm: Difference between revisions

m
→‎REXX comment: changed negative numbers to negative coördinates. -- ~~~~
(→‎REXX comment: adjusted spelling. -- ~~~~)
m (→‎REXX comment: changed negative numbers to negative coördinates. -- ~~~~)
Line 58:
But, in the sort of context where this line algorithm would be useful that I have seen, screen coordinates are always have been non-negative integers, so in practice this kind of ambiguity should not matter. --[[User:Rdm|Rdm]] 15:52, 4 June 2012 (UTC)
 
: Yuppers, that's when the trouble starts. Still, an error is an error (even if only by omission or via ambiguousness), and it's especially troublesome when the pseudo-code in the Wikipedia entry doesn't mention the limitations. After I adjusted the IPART to FLOOR, it seems to work, but without others trying negative numberscoördinates (which weren't specially mentioned that negative coördinates weren't allowed), we'll never know until the fat lady sings, er, I mean, actual output from the various language examples are shown. Since Xiaolin Wu's line algorithm can be used as a replacement for Bresenham's line algorithm (which was developed to be used with a CalComp plotter attached to an IBM 1401 in the 1960's), I assumed that it would also handle negative coördinates. -- [[User:Gerard Schildberger|Gerard Schildberger]] 16:23, 4 June 2012 (UTC)