@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/dist/main.js +64 -0
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +64 -0
- package/dist/module.js +64 -1
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
- package/types/Color.d.ts +13 -0
- package/types/index.d.ts +1 -0
package/package.json
CHANGED
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