Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock authored Mar 4, 2023
1 parent 83d07fa commit bdb7bed
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/voronoi.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,9 @@ export default class Voronoi {
if (cj) loop: for (let ai = 0, li = ci.length; ai < li; ai += 2) {
for (let aj = 0, lj = cj.length; aj < lj; aj += 2) {
if (Math.abs(ci[ai] - cj[aj]) < epsilon
&& Math.abs(ci[ai + 1] - cj[aj + 1]) < epsilon
&& Math.abs(ci[(ai + 2) % li] - cj[(aj + lj - 2) % lj]) < epsilon
&& Math.abs(ci[(ai + 3) % li] - cj[(aj + lj - 1) % lj]) < epsilon
) {
&& Math.abs(ci[ai + 1] - cj[aj + 1]) < epsilon
&& Math.abs(ci[(ai + 2) % li] - cj[(aj + lj - 2) % lj]) < epsilon
&& Math.abs(ci[(ai + 3) % li] - cj[(aj + lj - 1) % lj]) < epsilon) {
yield j;
break loop;
}
Expand Down

0 comments on commit bdb7bed

Please sign in to comment.