@galacean/engine-math 2.0.0-alpha.38 → 2.0.0-alpha.40
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 +17 -0
- package/dist/main.js.map +1 -1
- package/dist/module.js +17 -0
- package/dist/module.js.map +1 -1
- package/package.json +1 -2
- package/types/Ray.d.ts +14 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-math",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.40",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"main": "dist/main.js",
|
|
13
13
|
"module": "dist/module.js",
|
|
14
|
-
"browser": "dist/browser.js",
|
|
15
14
|
"debug": "src/index.ts",
|
|
16
15
|
"types": "types/index.d.ts",
|
|
17
16
|
"files": [
|
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
|
}
|