@vertexvis/geometry 1.1.1-testing.0 → 1.1.1-testing.1

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 CHANGED
@@ -1179,7 +1179,7 @@ function create$a(...args) {
1179
1179
  * component. A component is invalid if it contains a non-finite or NaN value.
1180
1180
  */
1181
1181
  function isValid$1({ x, y, z }) {
1182
- return [x, y, z].every((v) => isFinite(v) && !isNaN(v));
1182
+ return [x, y, z].every((v) => Number.isFinite(v) && !Number.isNaN(v));
1183
1183
  }
1184
1184
  /**
1185
1185
  * Checks if every component of the given vector is zero.
@@ -1626,10 +1626,9 @@ const epsilon = (boundingBox) => {
1626
1626
  return (Math.max(Math.max(magnitude(boundingBox.max), magnitude(boundingBox.min)), magnitude(diagonal(boundingBox))) * 1e-6);
1627
1627
  };
1628
1628
  function union(box, ...rest) {
1629
- const boxes = [box, ...rest];
1630
- return boxes.reduce((a, b) => {
1629
+ return rest.reduce((a, b) => {
1631
1630
  return create$9(min(a.min, b.min), max(a.max, b.max));
1632
- });
1631
+ }, box);
1633
1632
  }
1634
1633
  /* eslint-enable padding-line-between-statements */
1635
1634
  /**