@vertexvis/geometry 1.0.2-testing.1 → 1.0.2-testing.3
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 +6 -2
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.js +6 -2
- package/dist/bundle.js.map +1 -1
- package/dist/cdn/bundle.js +6 -2
- 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/dist/vector3.d.ts +5 -1
- package/package.json +3 -3
package/dist/bundle.cjs
CHANGED
|
@@ -1206,7 +1206,11 @@ function isValid$1(_a) {
|
|
|
1206
1206
|
var x = _a.x, y = _a.y, z = _a.z;
|
|
1207
1207
|
return [x, y, z].every(function (v) { return isFinite(v) && !isNaN(v); });
|
|
1208
1208
|
}
|
|
1209
|
-
|
|
1209
|
+
/**
|
|
1210
|
+
* Checks if every component of the given vector is zero.
|
|
1211
|
+
* Useful for detecting potentially problematic camera vectors, for example.
|
|
1212
|
+
*/
|
|
1213
|
+
function isZeroVector(_a) {
|
|
1210
1214
|
var x = _a.x, y = _a.y, z = _a.z;
|
|
1211
1215
|
return [x, y, z].every(function (v) { return v === 0; });
|
|
1212
1216
|
}
|
|
@@ -1570,9 +1574,9 @@ var vector3 = /*#__PURE__*/Object.freeze({
|
|
|
1570
1574
|
fromJson: fromJson$2,
|
|
1571
1575
|
fromMatrixPosition: fromMatrixPosition,
|
|
1572
1576
|
fromMatrixScale: fromMatrixScale,
|
|
1573
|
-
isAllZero: isAllZero,
|
|
1574
1577
|
isEqual: isEqual$2,
|
|
1575
1578
|
isValid: isValid$1,
|
|
1579
|
+
isZeroVector: isZeroVector,
|
|
1576
1580
|
left: left,
|
|
1577
1581
|
lerp: lerp,
|
|
1578
1582
|
magnitude: magnitude,
|