Skip to content

Commit

Permalink
test: #251
Browse files Browse the repository at this point in the history
  • Loading branch information
army8735 committed Nov 3, 2022
1 parent 563a203 commit 316a797
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32996,8 +32996,8 @@
c2 = _getPlainNormalEquati2.c,
d2 = _getPlainNormalEquati2.d;

var z1 = (-d1 - a1 * cx - b1 * cy) / c1;
var z2 = (-d2 - a2 * cx - b2 * cy) / c2;
var z1 = c1 ? (-d1 - a1 * cx - b1 * cy) / c1 : 0;
var z2 = c2 ? (-d2 - a2 * cx - b2 * cy) / c2 : 0;

if (Math.abs(z1 - z2) > 1e-9) {
zHash[_i18] = z1 - z2;
Expand Down
2 changes: 1 addition & 1 deletion index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/gl/oit.js
Original file line number Diff line number Diff line change
Expand Up @@ -640,8 +640,8 @@ function sortPuzzleZ(list) {
let cx = (listX[0] + listX[1]) * 0.5, cy = (listY[0] + listY[1]) * 0.5;
let { a: a1, b: b1, c: c1, d: d1 } = getPlainNormalEquation(pa.points);
let { a: a2, b: b2, c: c2, d: d2 } = getPlainNormalEquation(pb.points);
let z1 = (-d1 - a1 * cx - b1 * cy) / c1;
let z2 = (-d2 - a2 * cx - b2 * cy) / c2;
let z1 = c1 ? ((-d1 - a1 * cx - b1 * cy) / c1) : 0;
let z2 = c2 ? ((-d2 - a2 * cx - b2 * cy) / c2) : 0;
if(Math.abs(z1 - z2) > 1e-9) {
zHash[i] = z1 - z2;
}
Expand Down
2 changes: 1 addition & 1 deletion test/group4/transform-style-flat/test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 316a797

Please sign in to comment.