* 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)
| 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. |