@galacean/engine-math 1.5.0-alpha.1 → 1.5.0-beta.0
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/main.js +19 -0
- package/dist/main.js.map +1 -1
- package/dist/module.js +19 -0
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
- package/types/BoundingBox.d.ts +13 -1
- package/types/Vector3.d.ts +1 -2
package/package.json
CHANGED
package/types/BoundingBox.d.ts
CHANGED
|
@@ -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 {};
|
package/types/Vector3.d.ts
CHANGED
|
@@ -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 {};
|