@galacean/engine-math 2.0.0-alpha.44 → 2.0.0-alpha.45

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": "2.0.0-alpha.44",
3
+ "version": "2.0.0-alpha.45",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
package/types/Color.d.ts CHANGED
@@ -54,6 +54,16 @@ export declare class Color implements IClone<Color>, ICopy<ColorLike, Color> {
54
54
  * @param out - The result of linear blending between two color
55
55
  */
56
56
  static lerp(start: Color, end: Color, t: number, out: Color): Color;
57
+ /** @internal */
58
+ _r: number;
59
+ /** @internal */
60
+ _g: number;
61
+ /** @internal */
62
+ _b: number;
63
+ /** @internal */
64
+ _a: number;
65
+ /** @internal */
66
+ _onValueChanged: () => void;
57
67
  /**
58
68
  * The red component of the color, 0~1.
59
69
  */
package/types/Matrix.d.ts CHANGED
@@ -10,6 +10,8 @@ export declare class Matrix implements IClone<Matrix>, ICopy<Matrix, Matrix> {
10
10
  private static readonly _tempVec31;
11
11
  private static readonly _tempVec32;
12
12
  private static readonly _tempMat30;
13
+ /** @internal Identity matrix. */
14
+ static readonly _identity: Matrix;
13
15
  /**
14
16
  * Determines the product of two matrices.
15
17
  * @param left - The first matrix to multiply
@@ -6,6 +6,10 @@ import { Vector3 } from "./Vector3";
6
6
  * Represents a four dimensional mathematical quaternion.
7
7
  */
8
8
  export declare class Quaternion implements IClone<Quaternion>, ICopy<QuaternionLike, Quaternion> {
9
+ /** @internal */
10
+ static readonly _tempVector3: Vector3;
11
+ /** @internal */
12
+ static readonly _tempQuat1: Quaternion;
9
13
  /**
10
14
  * Determines the sum of two quaternions.
11
15
  * @param left - The first quaternion to add
@@ -143,6 +147,16 @@ export declare class Quaternion implements IClone<Quaternion>, ICopy<QuaternionL
143
147
  * @param out - The scaled quaternion
144
148
  */
145
149
  static scale(a: Quaternion, s: number, out: Quaternion): void;
150
+ /** @internal */
151
+ _x: number;
152
+ /** @internal */
153
+ _y: number;
154
+ /** @internal */
155
+ _z: number;
156
+ /** @internal */
157
+ _w: number;
158
+ /** @internal */
159
+ _onValueChanged: () => void;
146
160
  /**
147
161
  * The x component of the quaternion.
148
162
  */
package/types/Rect.d.ts CHANGED
@@ -1,6 +1,16 @@
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
+ /** @internal */
5
+ _x: number;
6
+ /** @internal */
7
+ _y: number;
8
+ /** @internal */
9
+ _width: number;
10
+ /** @internal */
11
+ _height: number;
12
+ /** @internal */
13
+ _onValueChanged: () => void;
4
14
  /**
5
15
  * The x coordinate of the rectangle.
6
16
  */
@@ -4,6 +4,10 @@ import { ICopy } from "./ICopy";
4
4
  * Describes a 2D-vector.
5
5
  */
6
6
  export declare class Vector2 implements IClone<Vector2>, ICopy<Vector2Like, Vector2> {
7
+ /** @internal */
8
+ static readonly _zero: Vector2;
9
+ /** @internal */
10
+ static readonly _one: Vector2;
7
11
  /**
8
12
  * Determines the sum of two vectors.
9
13
  * @param left - The first vector to add
@@ -101,6 +105,12 @@ export declare class Vector2 implements IClone<Vector2>, ICopy<Vector2Like, Vect
101
105
  * @param out - The scaled vector
102
106
  */
103
107
  static scale(left: Vector2, s: number, out: Vector2): void;
108
+ /** @internal */
109
+ _x: number;
110
+ /** @internal */
111
+ _y: number;
112
+ /** @internal */
113
+ _onValueChanged: () => void;
104
114
  /**
105
115
  * The x component of the vector.
106
116
  */
@@ -7,6 +7,10 @@ import { Vector4 } from "./Vector4";
7
7
  * Describes a 3D-vector.
8
8
  */
9
9
  export declare class Vector3 implements IClone<Vector3>, ICopy<Vector3Like, Vector3> {
10
+ /** @internal */
11
+ static readonly _zero: Vector3;
12
+ /** @internal */
13
+ static readonly _one: Vector3;
10
14
  /**
11
15
  * Determines the sum of two vectors.
12
16
  * @param left - The first vector to add
@@ -159,6 +163,14 @@ export declare class Vector3 implements IClone<Vector3>, ICopy<Vector3Like, Vect
159
163
  * @param out - The transformed vector
160
164
  */
161
165
  static transformByQuat(v: Vector3, quaternion: Quaternion, out: Vector3): void;
166
+ /** @internal */
167
+ _x: number;
168
+ /** @internal */
169
+ _y: number;
170
+ /** @internal */
171
+ _z: number;
172
+ /** @internal */
173
+ _onValueChanged: () => void;
162
174
  /**
163
175
  * The x component of the vector.
164
176
  */
@@ -6,6 +6,10 @@ import { Quaternion } from "./Quaternion";
6
6
  * Describes a 4D-vector.
7
7
  */
8
8
  export declare class Vector4 implements IClone<Vector4>, ICopy<Vector4Like, Vector4> {
9
+ /** @internal */
10
+ static readonly _zero: Vector4;
11
+ /** @internal */
12
+ static readonly _one: Vector4;
9
13
  /**
10
14
  * Determines the sum of two vectors.
11
15
  * @param left - The first vector to add
@@ -117,6 +121,16 @@ export declare class Vector4 implements IClone<Vector4>, ICopy<Vector4Like, Vect
117
121
  * @param out - The transformed vector
118
122
  */
119
123
  static transformByQuat(v: Vector4, q: Quaternion, out: Vector4): void;
124
+ /** @internal */
125
+ _x: number;
126
+ /** @internal */
127
+ _y: number;
128
+ /** @internal */
129
+ _z: number;
130
+ /** @internal */
131
+ _w: number;
132
+ /** @internal */
133
+ _onValueChanged: () => void;
120
134
  /**
121
135
  * The x component of the vector.
122
136
  */