Skip to content

Commit

Permalink
correct search area size. Fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
finnboeger committed Apr 28, 2020
1 parent 8f5d4f4 commit 7253cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client-data/tools/eraser/eraser.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
if (erasing) {
// get points all within a circle of a given radius
// https://stackoverflow.com/a/26802146
var radius = Tools.getSize(),
var radius = Tools.getSize()/2,
r2 = radius*radius;
for (var dx = -radius; dx <= radius; dx++) {
var h = Math.sqrt(r2 - dx * dx) | 0;
Expand Down

0 comments on commit 7253cb5

Please sign in to comment.