-
-
Notifications
You must be signed in to change notification settings - Fork 49.3k
Docs: Improve docstring for DDA algorithm #13906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Docs: Improve docstring for DDA algorithm #13906
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checkout these changes as mentioned on desired places below.
| """ | ||
| Draws a line between two points using the DDA algorithm. | ||
| This algorithm works by calculating the dx (change in x) and dy;(change in y) and then iteratively |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After dy - ";" is put by mistake, maybe, so remove it or adjust accordingly.
| Draws a line between two points using the DDA algorithm. | ||
| This algorithm works by calculating the dx (change in x) and dy;(change in y) and then iteratively | ||
| steps along the dominant axis,incrementing the other axis by a fractional amount (the slope). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The algorithm actually steps along both axes simultaneously. The calculation of the increments (
This resolves issue #13905.