@galacean/engine-math 1.5.0-alpha.0 → 1.5.0-alpha.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-math",
3
- "version": "1.5.0-alpha.0",
3
+ "version": "1.5.0-alpha.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -2,7 +2,7 @@ import { BoundingSphere } from "./BoundingSphere";
2
2
  import { IClone } from "./IClone";
3
3
  import { ICopy } from "./ICopy";
4
4
  import { Matrix } from "./Matrix";
5
- import { Vector3 } from "./Vector3";
5
+ import { Vector3, Vector3Like } from "./Vector3";
6
6
  /**
7
7
  * Axis Aligned Bound Box (AABB).
8
8
  */
@@ -88,4 +88,16 @@ export declare class BoundingBox implements IClone<BoundingBox>, ICopy<BoundingB
88
88
  * @returns This bounding box
89
89
  */
90
90
  copyFrom(source: BoundingBox): BoundingBox;
91
+ /**
92
+ * Serialize this bounding box to a JSON representation.
93
+ * @returns A JSON representation of this bounding box
94
+ */
95
+ toJSON(): BoundingBoxLike;
96
+ }
97
+ interface BoundingBoxLike {
98
+ /** {@inheritDoc BoundingBox.min} */
99
+ min: Vector3Like;
100
+ /** {@inheritDoc BoundingBox.max} */
101
+ max: Vector3Like;
91
102
  }
103
+ export {};
@@ -311,7 +311,7 @@ export declare class Vector3 implements IClone<Vector3>, ICopy<Vector3Like, Vect
311
311
  */
312
312
  toJSON(): Vector3Like;
313
313
  }
314
- interface Vector3Like {
314
+ export interface Vector3Like {
315
315
  /** {@inheritDoc Vector3.x} */
316
316
  x: number;
317
317
  /** {@inheritDoc Vector3.y} */
@@ -319,4 +319,3 @@ interface Vector3Like {
319
319
  /** {@inheritDoc Vector3.z} */
320
320
  z: number;
321
321
  }
322
- export {};