Skip to content

Commit 15f8402

Browse files
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
1 parent 9a2fd24 commit 15f8402

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphics/digital_differential_analyzer_line.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def digital_differential_analyzer_line(
2121
Despite this, DDA is useful for educational purposes as it is simple
2222
to understand and demonstrates the basic idea of incremental line generation.
2323
24-
For more details, see:
25-
https://en.wikipedia.org/wiki/Digital_differential_analyzer_(graphics_algorithm)
24+
References:
25+
- https://en.wikipedia.org/wiki/Digital_differential_analyzer_(graphics_algorithm)
2626
2727
2828

0 commit comments

Comments
 (0)