Xiaolin Wu's line algorithm: Difference between revisions

Content added Content deleted
Line 4,350: Line 4,350:




I thought it would be amusing to modify the code to use the macro system, and so I made the following second version. Note also that the <code>steep</code> variable is gone.
I thought it would be amusing to modify the code to use the R7RS-small macro system, and so I made the following second version. Note also the variable <code>steep</code> is gone.
<syntaxhighlight lang="scheme">
<syntaxhighlight lang="scheme">
;;;-------------------------------------------------------------------
;;;-------------------------------------------------------------------