You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @jiannanya Your approach does not cover, as mentioned by @eduardoheleno, all cases. It does not correctly handle lines with negative slopes, vertical lines, or lines with slopes greater than 1.
Regarding your topic title: I was also wondering why they did not use the original algorithm. I think that is because of educational reasons, I don't believe the one in the tutorial is faster than the original one. Or am I wrong?
And btw. there's a missing semicolon after y++ :-)
Hi there, I know the original one is correct, but why not use the more universal Bresenham like blow ?
code like:
The text was updated successfully, but these errors were encountered: