@galacean/engine-math 0.0.0-experimental-2.0-game.19 → 0.0.0-experimental-2.0-migrate.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/dist/main.js +24 -13
- package/dist/main.js.map +1 -1
- package/dist/module.js +24 -13
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
- package/types/BoundingBox.d.ts +0 -2
- package/types/Ray.d.ts +14 -1
package/package.json
CHANGED
package/types/BoundingBox.d.ts
CHANGED
|
@@ -7,8 +7,6 @@ import { Vector3, Vector3Like } from "./Vector3";
|
|
|
7
7
|
* Axis Aligned Bound Box (AABB).
|
|
8
8
|
*/
|
|
9
9
|
export declare class BoundingBox implements IClone<BoundingBox>, ICopy<BoundingBox, BoundingBox> {
|
|
10
|
-
private static _tempVec30;
|
|
11
|
-
private static _tempVec31;
|
|
12
10
|
/**
|
|
13
11
|
* Calculate a bounding box from the center point and the extent of the bounding box.
|
|
14
12
|
* @param center - The center point
|
package/types/Ray.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { BoundingBox } from "./BoundingBox";
|
|
2
2
|
import { BoundingSphere } from "./BoundingSphere";
|
|
3
|
+
import { IClone } from "./IClone";
|
|
4
|
+
import { ICopy } from "./ICopy";
|
|
3
5
|
import { Plane } from "./Plane";
|
|
4
6
|
import { Vector3 } from "./Vector3";
|
|
5
7
|
/**
|
|
6
8
|
* Represents a ray with an origin and a direction in 3D space.
|
|
7
9
|
*/
|
|
8
|
-
export declare class Ray {
|
|
10
|
+
export declare class Ray implements IClone<Ray>, ICopy<Ray, Ray> {
|
|
9
11
|
/** The origin of the ray. */
|
|
10
12
|
readonly origin: Vector3;
|
|
11
13
|
/** The normalized direction of the ray. */
|
|
@@ -41,4 +43,15 @@ export declare class Ray {
|
|
|
41
43
|
* @returns The out
|
|
42
44
|
*/
|
|
43
45
|
getPoint(distance: number, out: Vector3): Vector3;
|
|
46
|
+
/**
|
|
47
|
+
* Creates a clone of this ray.
|
|
48
|
+
* @returns A clone of this ray
|
|
49
|
+
*/
|
|
50
|
+
clone(): Ray;
|
|
51
|
+
/**
|
|
52
|
+
* Copy this ray from the specified ray.
|
|
53
|
+
* @param source - The specified ray
|
|
54
|
+
* @returns This ray
|
|
55
|
+
*/
|
|
56
|
+
copyFrom(source: Ray): Ray;
|
|
44
57
|
}
|