@galacean/engine-math 0.0.0-experimental-0.9-plus.7 → 0.0.0-experimental-ktx2.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 +109 -12
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +109 -12
- package/dist/module.js +109 -12
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
- package/types/CollisionUtil.d.ts +7 -0
- package/types/Rect.d.ts +20 -8
package/package.json
CHANGED
package/types/CollisionUtil.d.ts
CHANGED
|
@@ -98,6 +98,13 @@ export declare class CollisionUtil {
|
|
|
98
98
|
* @returns True if bounding box intersects with this frustum, false otherwise
|
|
99
99
|
*/
|
|
100
100
|
static intersectsFrustumAndBox(frustum: BoundingFrustum, box: BoundingBox): boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Get the containment type between a frustum and a point.
|
|
103
|
+
* @param frustum - The frustum
|
|
104
|
+
* @param point - The point
|
|
105
|
+
* @returns The containment type
|
|
106
|
+
*/
|
|
107
|
+
static frustumContainsPoint(frustum: BoundingFrustum, point: Vector3): ContainmentType;
|
|
101
108
|
/**
|
|
102
109
|
* Get the containment type between a frustum and a box (AABB).
|
|
103
110
|
* @param frustum - The frustum
|
package/types/Rect.d.ts
CHANGED
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
import { IClone } from "./IClone";
|
|
2
2
|
import { ICopy } from "./ICopy";
|
|
3
3
|
export declare class Rect implements IClone<Rect>, ICopy<Rect, Rect> {
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
/**
|
|
5
|
+
* The x coordinate of the rectangle.
|
|
6
|
+
*/
|
|
7
|
+
get x(): number;
|
|
8
|
+
set x(value: number);
|
|
9
|
+
/**
|
|
10
|
+
* The y coordinate of the rectangle.
|
|
11
|
+
*/
|
|
12
|
+
get y(): number;
|
|
13
|
+
set y(value: number);
|
|
14
|
+
/**
|
|
15
|
+
* The width of the rectangle, measured from the x position.
|
|
16
|
+
*/
|
|
17
|
+
get width(): number;
|
|
18
|
+
set width(value: number);
|
|
19
|
+
/**
|
|
20
|
+
* The height of the rectangle, measured from the y position.
|
|
21
|
+
*/
|
|
22
|
+
get height(): number;
|
|
23
|
+
set height(value: number);
|
|
12
24
|
/**
|
|
13
25
|
* Constructor of Rect.
|
|
14
26
|
* @param x - The x coordinate of the rectangle, default 0
|