Xiaolin Wu's line algorithm: Difference between revisions

Content deleted Content added
Line 16:
// integer part of x
function ipart(x) is
return intfloor(x)
 
function round(x) is
if x < 0
return ipart(x - 0.5)
return ipart(x + 0.5)