@galacean/engine-math 0.0.0-experimental-double11.4 → 0.0.0-experimental-double11.6

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": "0.0.0-experimental-double11.4",
3
+ "version": "0.0.0-experimental-double11.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
package/types/Color.d.ts CHANGED
@@ -114,6 +114,19 @@ export declare class Color implements IClone<Color>, ICopy<ColorLike, Color> {
114
114
  * @returns This vector
115
115
  */
116
116
  copyFrom(source: ColorLike): Color;
117
+ /**
118
+ * Copy from array like object.
119
+ * @param source - Array like object
120
+ * @param offset - The start offset
121
+ * @returns This color
122
+ */
123
+ copyFromArray(source: ArrayLike<number>, offset?: number): Color;
124
+ /**
125
+ * Copy the value of this color to an array.
126
+ * @param out - The color
127
+ * @param outOffset - The start offset
128
+ */
129
+ copyToArray(out: number[] | Float32Array | Float64Array, outOffset?: number): void;
117
130
  /**
118
131
  * Modify components (r, g, b) of this color from gamma space to linear space.
119
132
  * @param out - The color in linear space
package/types/index.d.ts CHANGED
@@ -17,3 +17,4 @@ export { Plane } from "./Plane";
17
17
  export { Color } from "./Color";
18
18
  export { Rect } from "./Rect";
19
19
  export { SphericalHarmonics3 } from "./SphericalHarmonics3";
20
+ export { Rand } from "./Rand";