@vertexvis/geometry 1.1.1-testing.0 → 1.1.1-testing.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.cjs +3 -4
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.js +3 -4
- package/dist/bundle.js.map +1 -1
- package/dist/cdn/bundle.js +3 -4
- package/dist/cdn/bundle.js.map +1 -1
- package/dist/cdn/bundle.min.js +1 -1
- package/dist/cdn/bundle.min.js.map +1 -1
- package/package.json +11 -11
package/dist/bundle.js
CHANGED
|
@@ -1177,7 +1177,7 @@ function create$a(...args) {
|
|
|
1177
1177
|
* component. A component is invalid if it contains a non-finite or NaN value.
|
|
1178
1178
|
*/
|
|
1179
1179
|
function isValid$1({ x, y, z }) {
|
|
1180
|
-
return [x, y, z].every((v) => isFinite(v) && !isNaN(v));
|
|
1180
|
+
return [x, y, z].every((v) => Number.isFinite(v) && !Number.isNaN(v));
|
|
1181
1181
|
}
|
|
1182
1182
|
/**
|
|
1183
1183
|
* Checks if every component of the given vector is zero.
|
|
@@ -1624,10 +1624,9 @@ const epsilon = (boundingBox) => {
|
|
|
1624
1624
|
return (Math.max(Math.max(magnitude(boundingBox.max), magnitude(boundingBox.min)), magnitude(diagonal(boundingBox))) * 1e-6);
|
|
1625
1625
|
};
|
|
1626
1626
|
function union(box, ...rest) {
|
|
1627
|
-
|
|
1628
|
-
return boxes.reduce((a, b) => {
|
|
1627
|
+
return rest.reduce((a, b) => {
|
|
1629
1628
|
return create$9(min(a.min, b.min), max(a.max, b.max));
|
|
1630
|
-
});
|
|
1629
|
+
}, box);
|
|
1631
1630
|
}
|
|
1632
1631
|
/* eslint-enable padding-line-between-statements */
|
|
1633
1632
|
/**
|