Skip to content

Commit 6b6ada0

Browse files
committed
Merge branch 'main' of github.com:d3/d3-delaunay into main
2 parents bdedd3e + 0b51543 commit 6b6ada0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/voronoi.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,8 @@ export default class Voronoi {
278278
case 0b1001: e0 = 0b0001; continue; // bottom-left
279279
case 0b0001: e0 = 0b0101, x = this.xmin, y = this.ymin; break; // left
280280
}
281-
282-
// Implicit out of bounds checking.
283-
// P[j] or P[j+1] may become undefined and the conditional statement will be
284-
// executed.
281+
// Note: this implicitly checks for out of bounds: if P[j] or P[j+1] are
282+
// undefined, the conditional statement will be executed.
285283
if ((P[j] !== x || P[j + 1] !== y) && this.contains(i, x, y)) {
286284
P.splice(j, 0, x, y), j += 2;
287285
}

0 commit comments

Comments
 (0)