@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.
@@ -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;
@@ -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
  /**