Commit 89343fd
improve docstring for DDA algorithm (#14029)
* improve docstring for DDA algorithm
Fixes #13905
Improves the DDA algorithm docstring by adding:
- explanation of how the algorithm works
- its main disadvantage
- comparison with Bresenham algorithm
- reference link for further reading
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* improve docstring for DDA algorithm
Fixes #13905
Improves the DDA algorithm docstring by adding:
- explanation of how the algorithm works
- its main disadvantage
- comparison with Bresenham algorithm
- reference link for further reading
* Refactor docstring for digital_differential_analyzer_line
Updated the docstring to clarify the DDA algorithm description and removed redundant references.
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>1 parent 86af3bd commit 89343fd
1 file changed
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
9 | 23 | | |
10 | 24 | | |
11 | | - | |
12 | | - | |
| 25 | + | |
| 26 | + | |
13 | 27 | | |
14 | | - | |
| 28 | + | |
15 | 29 | | |
16 | 30 | | |
17 | 31 | | |
| |||
0 commit comments