Xiaolin Wu's line algorithm: Difference between revisions

→‎{{header|REXX}}: added comment in header section regarding ''ipart'' versus ''floor''.
m (→‎{{header|REXX}}: fixed ROUND subroutine bug for REGINA. -- ~~~~)
(→‎{{header|REXX}}: added comment in header section regarding ''ipart'' versus ''floor''.)
Line 620:
 
=={{header|REXX}}==
This REXX example uses the Xiaolin Wu line algorithm to draw a line (with output).
<br>Apparently, there may be an error in the definition of the algorithm (which only manifests itself with negative numbers):
<br>use of the '''IPART''' function should probably be '''FLOOR'''.
<br>[See the ''talk'' section on the Xiaolin Wu's line algorithm.]
<br> http://en.wikipedia.org/wiki/Talk:Xiaolin_Wu%27s_line_algorithm
<lang rexx>/*REXX program plots/draws a line using the Xiaolin Wu line algorithm.*/
EoE = 1000 /*EOE = End Of Earth, er, plot. */