We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bce53e7 commit d9fb1ecCopy full SHA for d9fb1ec
plotters/src/element/basic_shapes.rs
@@ -343,8 +343,7 @@ where
343
while start != end {
344
let (dx, dy) = (end.0 - start.0, end.1 - start.1);
345
let d = dx.hypot(dy);
346
- let size = spacing;
347
- let left = size - dist;
+ let left = spacing - dist;
348
// Set next point to `start`
349
if left < d {
350
let t = left / d;
@@ -355,7 +354,7 @@ where
355
354
dist += d;
356
}
357
// Draw if needed
358
- if size <= dist {
+ if spacing <= dist {
359
let start_i = to_i(start);
360
(self.func)(start_i)
361
.into_dyn()
0 commit comments