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

Method copyFromArray

packages/math/src/Matrix.ts:1255–1261  ·  view source on GitHub ↗

* Copy the value of this matrix from an array. * @param array - The array * @param offset - The start offset of the array * @returns This matrix

(array: ArrayLike<number>, offset: number = 0)

Source from the content-addressed store, hash-verified

1253 * @returns This matrix
1254 */
1255 copyFromArray(array: ArrayLike<number>, offset: number = 0): Matrix {
1256 const srce = this.elements;
1257 for (let i = 0; i < 16; i++) {
1258 srce[i] = array[i + offset];
1259 }
1260 return this;
1261 }
1262
1263 /**
1264 * Copy the value of this matrix to an array.

Callers 1

parseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected