@vertexvis/geometry 1.0.2-testing.0 → 1.0.2-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.
@@ -1204,6 +1204,14 @@ function isValid$1(_a) {
1204
1204
  var x = _a.x, y = _a.y, z = _a.z;
1205
1205
  return [x, y, z].every(function (v) { return isFinite(v) && !isNaN(v); });
1206
1206
  }
1207
+ /**
1208
+ * Checks if every component of the given vector is zero.
1209
+ * Useful for detecting potentially problematic camera vectors, for example.
1210
+ */
1211
+ function isZeroVector(_a) {
1212
+ var x = _a.x, y = _a.y, z = _a.z;
1213
+ return [x, y, z].every(function (v) { return v === 0; });
1214
+ }
1207
1215
  /**
1208
1216
  * Returns a vector representing the scale elements of `matrix`.
1209
1217
  */
@@ -1566,6 +1574,7 @@ var vector3 = /*#__PURE__*/Object.freeze({
1566
1574
  fromMatrixScale: fromMatrixScale,
1567
1575
  isEqual: isEqual$2,
1568
1576
  isValid: isValid$1,
1577
+ isZeroVector: isZeroVector,
1569
1578
  left: left,
1570
1579
  lerp: lerp,
1571
1580
  magnitude: magnitude,