On Sun, Apr 12, 2026 at 11:18:19AM +0200, Tomas Hlavaty wrote: > I mean the _edge function, which draws a line and looks similar but has > more ifs and also * and / > > The _edge function has some extras, e.g. it also computes z coordinate, > but there seem to be many ifs and also * and / which I cannot easily > follow.
Right. But these calculations are before the loop. The actual loop is still a normal Bresenham algorithm without multiplication or division, just duplicated to account for the third dimension. The setup code before the loop is indeed a bit involved, doing some simplified clipping, and flipping quadrants depending on the slope. ☺/ A!ex -- Fridays for Functions: 9:00-17:00 UTC on Jitsi https://meeting.itship.ch/picolisp UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe
