@@ -75320,7 +75320,7 @@ function erfc(a) {
75320
75320
75321
75321
z = -a * a;
75322
75322
75323
- if (z < -709.782712893384 )
75323
+ if (z < -kMAXLOG )
75324
75324
return (a < 0) ? 2.0 : 0.0;
75325
75325
75326
75326
z = Math.exp(z);
@@ -75632,7 +75632,7 @@ function igamc(a,x) {
75632
75632
return (1.0 - igam(a,x));
75633
75633
75634
75634
let ax = a * Math.log(x) - x - lgam(a);
75635
- if ( ax < -709.782712893384 )
75635
+ if ( ax < -kMAXLOG )
75636
75636
return 0.0;
75637
75637
75638
75638
ax = Math.exp(ax);
@@ -75693,7 +75693,7 @@ function igam(a, x) {
75693
75693
75694
75694
/* Compute x**a * exp(-x) / gamma(a) */
75695
75695
let ax = a * Math.log(x) - x - lgam(a);
75696
- if ( ax < -709.782712893384 )
75696
+ if ( ax < -kMAXLOG )
75697
75697
return 0.0;
75698
75698
75699
75699
ax = Math.exp(ax);
@@ -75751,7 +75751,7 @@ function igami(a, y0) {
75751
75751
}
75752
75752
/* compute the derivative of the function at this point */
75753
75753
d = (a - 1.0) * Math.log(x) - x - lgm;
75754
- if ( d < -709.782712893384 )
75754
+ if ( d < -kMAXLOG )
75755
75755
break;
75756
75756
d = -Math.exp(d);
75757
75757
/* compute the step to the next approximation of x */
@@ -104798,7 +104798,7 @@ let Polygon$1 = class Polygon {
104798
104798
classifyVertex(vertex) {
104799
104799
const side_value = this.nsign * (this.normal.dot(vertex) - this.w);
104800
104800
104801
- if (side_value < -1e-5 ) return BACK;
104801
+ if (side_value < -EPSILON ) return BACK;
104802
104802
if (side_value > EPSILON) return FRONT;
104803
104803
return COPLANAR;
104804
104804
}
@@ -120525,7 +120525,7 @@ class TBuffer {
120525
120525
this.mapClass(this.fTagOffset + startpos + kMapOffset, classInfo.name);
120526
120526
} else {
120527
120527
// got a tag to an already seen class
120528
- const clTag = (tag & 2147483647 ) + this.fDisplacement;
120528
+ const clTag = (tag & ~kClassMask ) + this.fDisplacement;
120529
120529
classInfo.name = this.getMappedClass(clTag);
120530
120530
120531
120531
if (classInfo.name === -1)
@@ -120639,7 +120639,7 @@ DirectStreamers[clTBasket] = function(buf, obj) {
120639
120639
obj.fEntryOffset = buf.readFastArray(buf.ntoi4(), kInt);
120640
120640
if ((flag > 20) && (flag < 40)) {
120641
120641
for (let i = 0, kDisplacementMask = 0xFF000000; i < obj.fNevBuf; ++i)
120642
- obj.fEntryOffset[i] &= 16777215 ;
120642
+ obj.fEntryOffset[i] &= ~kDisplacementMask ;
120643
120643
}
120644
120644
}
120645
120645
0 commit comments