Skip to content

Commit ac76998

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 042a466 commit ac76998

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎graphics/digital_differential_analyzer_line.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def digital_differential_analyzer_line(
77
"""
88
Draws a line between two points using the DDA algorithm.
99
10-
This algorithm works by calculating the dx (change in x) and dy;(change in y) and then iteratively
10+
This algorithm works by calculating the dx (change in x) and dy;(change in y) and then iteratively
1111
steps along the dominant axis,incrementing the other axis by a fractional amount (the slope).
1212
It is notable for its simplicity but also for its main disadvantage:
1313
it relies on floating-point arithmetic at every step, which is computationally slow.

0 commit comments

Comments
 (0)