@babylonjs/core 7.13.0 → 7.13.1

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.
@@ -5376,9 +5376,22 @@ export class Matrix {
5376
5376
  addToSelf(other) {
5377
5377
  const m = this._m;
5378
5378
  const otherM = other.m;
5379
- for (let index = 0; index < 16; index++) {
5380
- m[index] += otherM[index];
5381
- }
5379
+ m[0] += otherM[0];
5380
+ m[1] += otherM[1];
5381
+ m[2] += otherM[2];
5382
+ m[3] += otherM[3];
5383
+ m[4] += otherM[4];
5384
+ m[5] += otherM[5];
5385
+ m[6] += otherM[6];
5386
+ m[7] += otherM[7];
5387
+ m[8] += otherM[8];
5388
+ m[9] += otherM[9];
5389
+ m[10] += otherM[10];
5390
+ m[11] += otherM[11];
5391
+ m[12] += otherM[12];
5392
+ m[13] += otherM[13];
5393
+ m[14] += otherM[14];
5394
+ m[15] += otherM[15];
5382
5395
  this.markAsUpdated();
5383
5396
  return this;
5384
5397
  }
@@ -6205,9 +6218,22 @@ export class Matrix {
6205
6218
  * @returns result input
6206
6219
  */
6207
6220
  static FromFloat32ArrayToRefScaled(array, offset, scale, result) {
6208
- for (let index = 0; index < 16; index++) {
6209
- result._m[index] = array[index + offset] * scale;
6210
- }
6221
+ result._m[0] = array[0 + offset] * scale;
6222
+ result._m[1] = array[1 + offset] * scale;
6223
+ result._m[2] = array[2 + offset] * scale;
6224
+ result._m[3] = array[3 + offset] * scale;
6225
+ result._m[4] = array[4 + offset] * scale;
6226
+ result._m[5] = array[5 + offset] * scale;
6227
+ result._m[6] = array[6 + offset] * scale;
6228
+ result._m[7] = array[7 + offset] * scale;
6229
+ result._m[8] = array[8 + offset] * scale;
6230
+ result._m[9] = array[9 + offset] * scale;
6231
+ result._m[10] = array[10 + offset] * scale;
6232
+ result._m[11] = array[11 + offset] * scale;
6233
+ result._m[12] = array[12 + offset] * scale;
6234
+ result._m[13] = array[13 + offset] * scale;
6235
+ result._m[14] = array[14 + offset] * scale;
6236
+ result._m[15] = array[15 + offset] * scale;
6211
6237
  result.markAsUpdated();
6212
6238
  return result;
6213
6239
  }