MCPcopy Create free account
hub / github.com/galacean/engine / copyToArray

Method copyToArray

packages/math/src/Color.ts:294–299  ·  view source on GitHub ↗

* Copy the value of this color to an array. * @param out - The color * @param outOffset - The start offset

(out: number[] | Float32Array | Float64Array, outOffset: number = 0)

Source from the content-addressed store, hash-verified

292 * @param outOffset - The start offset
293 */
294 copyToArray(out: number[] | Float32Array | Float64Array, outOffset: number = 0): void {
295 out[outOffset] = this._r;
296 out[outOffset + 1] = this._g;
297 out[outOffset + 2] = this._b;
298 out[outOffset + 3] = this._a;
299 }
300
301 /**
302 * Modify components (r, g, b) of this color from gamma space to linear space.

Callers 15

_updatePositionMethod · 0.45
_buildChunkMethod · 0.45
_subdiveCatmullClarkMethod · 0.45
_calculateEdgeIndexMethod · 0.45
_addNewParticleMethod · 0.45
_updatePositionMethod · 0.45
_buildChunkMethod · 0.45
Vector4.test.tsFile · 0.45
Vector3.test.tsFile · 0.45
Matrix.test.tsFile · 0.45
Vector2.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected