Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

why we choose the next to next midpoint for dnew in bresenham line alg

$
0
0
xp,yp are starting co-ord
dold=F(xp+1,yp+0.5)= . . .
choosen because we want to find out result for next midpoint..

if(d<=0)
dnew=F(xp+2,yp+0.5)
here, why we taken xp+2, what's the reason for that??

dont comment on any other concept of bresenham, i understood whole, but didn't got this

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>