@vertexvis/geometry 0.18.2-testing.3 → 0.19.0-canary.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/boundingBox.d.ts +5 -0
- package/dist/bundle.cjs.js +10 -2
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +10 -2
- package/dist/bundle.esm.js.map +1 -1
- package/dist/cdn/boundingBox.d.ts +5 -0
- package/dist/cdn/bundle.esm.js +10 -2
- package/dist/cdn/bundle.esm.js.map +1 -1
- package/dist/cdn/bundle.esm.min.js +2 -2
- package/dist/cdn/bundle.esm.min.js.map +1 -1
- package/package.json +3 -3
package/dist/boundingBox.d.ts
CHANGED
|
@@ -37,3 +37,8 @@ export declare function union(a: BoundingBox, b: BoundingBox): BoundingBox;
|
|
|
37
37
|
export declare function union(a: BoundingBox, b: BoundingBox, c: BoundingBox): BoundingBox;
|
|
38
38
|
export declare function union(a: BoundingBox, b: BoundingBox, c: BoundingBox, d: BoundingBox): BoundingBox;
|
|
39
39
|
export declare function union(...boxes: BoundingBox[]): BoundingBox | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Returns the distance between the min and max for the provided
|
|
42
|
+
* bounding box for each axis.
|
|
43
|
+
*/
|
|
44
|
+
export declare const lengths: (box: BoundingBox) => Vector3.Vector3;
|
package/dist/bundle.cjs.js
CHANGED
|
@@ -1172,7 +1172,14 @@ function union(box) {
|
|
|
1172
1172
|
return create$a(min(a.min, b.min), max(a.max, b.max));
|
|
1173
1173
|
});
|
|
1174
1174
|
}
|
|
1175
|
-
/* eslint-enable padding-line-between-statements */
|
|
1175
|
+
/* eslint-enable padding-line-between-statements */
|
|
1176
|
+
/**
|
|
1177
|
+
* Returns the distance between the min and max for the provided
|
|
1178
|
+
* bounding box for each axis.
|
|
1179
|
+
*/
|
|
1180
|
+
var lengths = function (box) {
|
|
1181
|
+
return create$b(box.max.x - box.min.x, box.max.y - box.min.y, box.max.z - box.min.z);
|
|
1182
|
+
};
|
|
1176
1183
|
|
|
1177
1184
|
var boundingBox = /*#__PURE__*/Object.freeze({
|
|
1178
1185
|
__proto__: null,
|
|
@@ -1181,7 +1188,8 @@ var boundingBox = /*#__PURE__*/Object.freeze({
|
|
|
1181
1188
|
center: center$3,
|
|
1182
1189
|
diagonal: diagonal,
|
|
1183
1190
|
epsilon: epsilon,
|
|
1184
|
-
union: union
|
|
1191
|
+
union: union,
|
|
1192
|
+
lengths: lengths
|
|
1185
1193
|
});
|
|
1186
1194
|
|
|
1187
1195
|
/**
|